Crate nhl_api

Crate nhl_api 

Source

Structs§

AssistSummary
Assist summary information
Award
Award won by player
AwardSeason
Season when award was won
Boxscore
Boxscore response with detailed game and player statistics
BoxscoreTeam
Team information in boxscore
CareerTotals
Career totals for regular season and playoffs
Client
ClientConfig
ClubGoalieStats
Goalie season statistics for a team
ClubSkaterStats
Skater season statistics for a team
ClubStats
Club statistics response containing skater and goalie stats
Conference
Conference information for a team
DailySchedule
Daily schedule response
DailyScores
Game scores for a day
Division
Division information for a team
DraftDetails
Draft details for a player
FeaturedStats
Featured stats shown prominently on player page
Franchise
Franchise information
FranchisesResponse
Response from the franchises endpoint
GameClock
Game clock information
GameDay
A day of games
GameId
A unique NHL game identifier
GameLog
Game log entry for a single game
GameMatchup
Game matchup/landing response
GameOutcome
Game outcome information
GameScore
Individual game score
GameSituation
Parsed game situation from situation code
GameStory
Game story
GameSummary
Game summary with scoring and penalties
GoalSummary
Goal summary information
GoalieStats
Goalie statistics
LocalizedString
Localized string (NHL API returns {default: “value”})
MatchupTeam
Team information in game matchup
ParseDefendingSideError
Error type for parsing DefendingSide from string
ParseGameScheduleStateError
Error type for parsing GameScheduleState from string
ParseGameStateError
Error type for parsing GameState from string
ParseGoalieDecisionError
Error type for parsing GoalieDecision from string
ParseHandednessError
Error type for parsing Handedness from string
ParseHomeRoadError
Error type for parsing HomeRoad from string
ParsePeriodTypeError
Error type for parsing PeriodType from string
ParsePositionError
Error type for parsing Position from string
ParseZoneCodeError
Error type for parsing ZoneCode from string
PenaltyPlayer
Player information in penalty summary
PenaltySummary
Penalty summary information
PeriodDescriptor
Period descriptor with game period information
PeriodPenalties
Penalty summary for a period
PeriodScoring
Scoring summary for a period
PlayByPlay
Play by play response with all game events
PlayEvent
Individual play event in the game
PlayEventDetails
Details for a play event (varies by event type)
PlayerByGameStats
Player statistics organized by team
PlayerGameLog
Player game log response
PlayerLanding
Player landing page data - comprehensive player profile
PlayerSearchResult
Player search result
PlayerStats
Player statistics (skater or goalie)
Roster
Team roster information Team roster with players by position
RosterPlayer
Individual player in a team roster
RosterSpot
Roster spot with player information
ScheduleGame
Schedule game information
ScheduleTeam
Team information in schedule
ScratchedPlayer
Scratched player information
Season
A season identifier (e.g., 20232024 for the 2023-2024 season)
SeasonGameTypes
Season game type availability for a team
SeasonInfo
Season manifest entry
SeasonSeriesMatchup
Season series matchup
SeasonTotal
Season-by-season statistics
SeasonsResponse
Seasons manifest response
SeriesGame
Individual game in the season series
SeriesGameInfo
Game information including officials and scratches
SeriesTeam
Team information in season series
SeriesWins
Season series win counts
ShiftChart
Shift chart data
ShiftEntry
Individual shift entry for a player
ShootoutAttempt
Shootout attempt information
SkaterStats
Skater (forward/defense) statistics
SpecialEvent
Special event information
Standing
Standing entry for a team
StandingsResponse
Standings response
StoryTeam
Team information in game story
Team
NHL Team information
TeamGameInfo
Team-specific game information
TeamGameStats
Aggregated team statistics for game comparison
TeamPlayerStats
Team’s player statistics grouped by position
TeamScheduleResponse
Team schedule response (monthly/weekly)
ThreeStar
Three stars selection
TvBroadcast
TV broadcast information
WeeklyScheduleResponse
Weekly schedule response

Enums§

DefendingSide
Which side of the ice the home team is defending
GameDate
A date wrapper for NHL API calls that can be “now” or a specific date
GameScheduleState
Game schedule state (OK, postponed, etc.)
GameState
NHL game state representing the current status of a game
GameType
NHL Game Type
GoalieDecision
Goalie game decision (win/loss/OT loss)
Handedness
NHL player handedness (shoots/catches)
HomeRoad
Home or road game indicator
NHLApiError
PeriodType
NHL period type
PlayEventType
Type of play event in a game
Position
NHL player position
ZoneCode
Ice zone where play event occurred