Skip to main content

Crate nfl_data

Crate nfl_data 

Source

Re-exports§

pub use snapshot::Snapshot;

Modules§

salaried_players
scoring
slates
snapshot

Structs§

AdminConfig
Admin router config: season and optional test clock override.
DataRevision
Opaque snapshot hint used to detect changes in NFL-data freshness.
EspnPlayerId
Game
InjuryEntry
LiveGame
LiveGameSnapshot
LivePlayerStats
LiveScoreboard
LiveSlate
LiveTeamStats
NflData
NflDataConfig
Player
PlayerIdentity
How a page names one pick: the display facts every consumer of a gsis id needs, resolved from whichever source carries the player.
PlayerWeekStats
ProviderResponse
Season
SeasonWeek
An NFL week identified by season year and absolute week number.
Tank01Config
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.
InjuryDesignation
LiveGamePhase
LiveProviderError
NflDataError
Common error for nflverse, FanDuel, slate, and local-store operations.
ProviderOutcome
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.

Traits§

InjuryProvider
LiveScoreProvider

Functions§

admin_router
Build the admin router. Not authenticated: the host must mount it behind its own admin gate.
eastern_offset
US Eastern offset for a date under post-2007 DST rules (second Sunday of March through first Sunday of November). Correct for every season this crate is configured to fetch; no NFL game kicks off inside the 2 AM transition window.
to_eastern
Convert an instant to US Eastern wall-clock time under post-2007 DST rules.