pub struct Sport {
pub id: SportId,
pub code: Cow<'static, str>,
pub name: Cow<'static, str>,
pub abbreviation: Cow<'static, str>,
pub sort_order: usize,
pub active: bool,
}Fields§
§id: SportId§code: Cow<'static, str>§name: Cow<'static, str>§abbreviation: Cow<'static, str>§sort_order: usize§active: boolImplementations§
Source§impl Sport
This endpoint won’t change that often, so we’ll store the values here if you need them.
This technically means the API is held “statically” (which is the point of an API to not have).
However, if the SportIds are being stored as constants (for obvious reason – it’s the most consistent way to look them up as an ID will never be re-used), we might as well store the sports too.
impl Sport
This endpoint won’t change that often, so we’ll store the values here if you need them.
This technically means the API is held “statically” (which is the point of an API to not have).
However, if the SportIds are being stored as constants (for obvious reason – it’s the most consistent way to look them up as an ID will never be re-used), we might as well store the sports too.
pub const MLB: Self
pub const AAA: Self
pub const AA: Self
pub const HIGH_A: Self
pub const A: Self
pub const ROOKIE: Self
pub const WINTER: Self
pub const MILB: Self
pub const INDIE: Self
pub const NLB: Self
pub const KBO: Self
pub const NPB: Self
pub const INTERNATIONAL: Self
pub const INTERNATIONAL_18U: Self
pub const INTERNATIONAL_16U: Self
pub const INTERNATIONAL_AMATEUR: Self
pub const COLLEGE: Self
pub const HIGH_SCHOOL: Self
pub const WPF: Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Sport
impl<'de> Deserialize<'de> for Sport
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Sport
impl Ord for Sport
Source§impl PartialOrd for Sport
impl PartialOrd for Sport
impl Eq for Sport
impl StructuralPartialEq for Sport
Auto Trait Implementations§
impl Freeze for Sport
impl RefUnwindSafe for Sport
impl Send for Sport
impl Sync for Sport
impl Unpin for Sport
impl UnwindSafe for Sport
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
Mutably borrows from an owned value. Read more
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.