Skip to main content

Crate nfl_model

Crate nfl_model 

Source
Expand description

Shared NFL records, live-provider contracts, and Eastern-time helpers.

Re-exports§

pub use eastern::eastern_offset;
pub use eastern::nfl_week_monday;
pub use eastern::to_eastern;
pub use live::EspnPlayerId;
pub use live::InjuryDesignation;
pub use live::InjuryEntry;
pub use live::InjuryProvider;
pub use live::InjuryReport;
pub use live::LiveGame;
pub use live::LiveGamePhase;
pub use live::LiveGameSnapshot;
pub use live::LivePlayerStats;
pub use live::LiveProviderError;
pub use live::LiveScoreProvider;
pub use live::LiveScoreboard;
pub use live::LiveScoreboardGame;
pub use live::LiveSlate;
pub use live::LiveTeamStats;
pub use live::ProviderOutcome;
pub use live::ProviderResponse;
pub use live::RawBody;

Modules§

eastern
live

Structs§

Game
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.
Player
PlayerWeekStats
Season
SeasonWeek
An NFL week identified by season year and absolute week number.
TeamWeekStats
One team’s per-week DST line, aggregated from play-by-play. Every field is a FanDuel DST scoring input. touchdowns collapses defensive, return, and special-teams TDs (all score +6). points_allowed is the opponent’s offensive points (FanDuel’s points-allowed), not the scoreboard total.
Week
WeeklyRosterEntry
One player’s place on a team’s roster in a single week. This survives mid-season trades: a player appears under each team for the weeks he was actually there.

Enums§

DfsPosition
A daily fantasy sports roster position for an NFL player or team defense.
DfsPositionSlotType
All DfsPositions + FLEX as an option
PlayerOrDefenseId
The identifier a pick carries: an NFL player or a team defense.
SeasonType
Stored as TEXT “REG”/“POST”. Upstream playoff game types (WC/DIV/CON/SB) map to Post at ingest.
TeamAbbr
An NFL team identified by its canonical abbreviation.