pub enum TeamAbbr {
Show 32 variants
ARI,
ATL,
BAL,
BUF,
CAR,
CHI,
CIN,
CLE,
DAL,
DEN,
DET,
GB,
HOU,
IND,
JAX,
KC,
LAC,
LA,
LV,
MIA,
MIN,
NE,
NO,
NYG,
NYJ,
PHI,
PIT,
SEA,
SF,
TB,
TEN,
WAS,
}Expand description
An NFL team identified by its canonical abbreviation.
String parsing is ASCII case-insensitive. JAC is accepted as an alias for
JAX, and LAR as an alias for LA. Serde deserialization also
accepts these uppercase aliases.
as_str, display formatting, Serde serialization, and SQLx storage use
canonical uppercase abbreviations, including JAX for Jacksonville and LA for the Rams.
§Examples
use nfl_model::TeamAbbr;
let team: TeamAbbr = "lar".parse()?;
assert_eq!(team, TeamAbbr::LA);
assert_eq!(team.as_str(), "LA");
assert_eq!(team.to_string(), "LA");Variants§
ARI
Arizona Cardinals.
ATL
Atlanta Falcons.
BAL
Baltimore Ravens.
BUF
Buffalo Bills.
CAR
Carolina Panthers.
CHI
Chicago Bears.
CIN
Cincinnati Bengals.
CLE
Cleveland Browns.
DAL
Dallas Cowboys.
DEN
Denver Broncos.
DET
Detroit Lions.
GB
Green Bay Packers.
HOU
Houston Texans.
IND
Indianapolis Colts.
JAX
Jacksonville Jaguars; also accepts JAC when parsing.
KC
Kansas City Chiefs.
LAC
Los Angeles Chargers.
LA
Los Angeles Rams; also accepts LAR when parsing.
LV
Las Vegas Raiders.
MIA
Miami Dolphins.
MIN
Minnesota Vikings.
NE
New England Patriots.
NO
New Orleans Saints.
NYG
New York Giants.
NYJ
New York Jets.
PHI
Philadelphia Eagles.
PIT
Pittsburgh Steelers.
SEA
Seattle Seahawks.
SF
San Francisco 49ers.
TB
Tampa Bay Buccaneers.
TEN
Tennessee Titans.
WAS
Washington Commanders.
Implementations§
Trait Implementations§
impl Copy for TeamAbbr
Source§impl<'de> Deserialize<'de> for TeamAbbr
impl<'de> Deserialize<'de> for TeamAbbr
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl<'q, DB: Database> Encode<'q, DB> for TeamAbbrwhere
&'q str: Encode<'q, DB>,
impl<'q, DB: Database> Encode<'q, DB> for TeamAbbrwhere
&'q str: Encode<'q, DB>,
Source§fn encode_by_ref(
&self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut <DB as Database>::ArgumentBuffer, ) -> Result<IsNull, BoxDynError>
fn size_hint(&self) -> usize
§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
impl Eq for TeamAbbr
Source§impl Ord for TeamAbbr
impl Ord for TeamAbbr
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for TeamAbbr
impl PartialOrd for TeamAbbr
impl StructuralPartialEq for TeamAbbr
Auto Trait Implementations§
impl Freeze for TeamAbbr
impl RefUnwindSafe for TeamAbbr
impl Send for TeamAbbr
impl Sync for TeamAbbr
impl Unpin for TeamAbbr
impl UnsafeUnpin for TeamAbbr
impl UnwindSafe for TeamAbbr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more