Skip to main content

choices

Function choices 

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

The candidate list for one slot, salary-descending from the snapshot. Omits players already picked into another slot; the current occupant of slot appears marked is_picked. Defense choices carry the team abbr as the value key.