nfl_model/models/nfl_player_id.rs
1/// A typed NFL-player reference. Wraps nfl-data's `String` gsis ids at the
2/// boundary; its eventual home is nfl-data next to `TeamAbbr`.
3#[derive(Debug, Clone, PartialEq, Eq, Hash, PartialOrd, Ord, sqlx::Type)]
4#[sqlx(transparent)]
5pub struct NflPlayerId(pub String);
6
7impl AsRef<str> for NflPlayerId {
8 fn as_ref(&self) -> &str {
9 &self.0
10 }
11}