Skip to main content

Module model

Module model 

Source

Structs§

ContestEntry
An entry seen from its contest’s side: the contest is context, the fantasy team is data — the symmetric view to FantasyTeamEntry.
EntryDetails
One entry loaded for display: its lineup plus the context the page needs — slate, league, and owning fantasy team.
EntryId
An entry’s id as an opaque token — the /entries/{id} route key.
EntrySlot
One entry_slots row, typed: which slot and what it holds.
EntryTeam
The owning fantasy team, as the entry page needs it.
FantasyTeamEntries
Aggregate root: a fantasy team and its contest entries. Ownership is the fantasy team↔entry relationship.
FantasyTeamEntry
An entry seen from its fantasy team’s side: the fantasy team is context (the owning FantasyTeamEntries), the contest is data. The contest-major view is the symmetric ContestEntry; a player-picks view gets a struct carrying both ids.
Lineup
Total — an entry exists in a contest, so all nine slots are filled.
NflPlayerId
A typed NFL-player reference. Wraps nfl-data’s String gsis ids at the boundary; its eventual home is nfl-data next to TeamAbbr.
RosterSlotIter
An iterator over the variants of RosterSlot

Enums§

LineupError
The one lineup invariant the schema can’t enforce: all nine slots present. (Valid slot names, payload shape, and per-entry uniqueness are CHECK/UNIQUE constraints on entry_slots.)
PlayerOrDefenseId
The identifier a pick carries: an NFL player or a team defense.
RosterSlot
A lineup’s nine roster slots. Stored as TEXT ("QB", "RB1", …) in entry_slots.roster_slot; the sqlx derive decodes that column directly.