Skip to main content

set_slot

Function set_slot 

Source
pub async fn set_slot(
    state: &AppState,
    team_id: FantasyTeamId,
    slate_id: SlateId,
    slot: RosterSlot,
    value: PlayerOrDefenseId,
) -> Result<(), AppError>
Expand description

Place (or replace) a pick in a slot. Rejects an invalid pick (see [validate_pick]) and refuses on a locked slate.