pub enum StatSplit {
Pitching(Box<PitchingStat>),
Hitting(Box<HittingStat>),
}Expand description
StatSplit stores the two options for deserializing a Split.
It uses the untagged enum representation to determine which one.
https://serde.rs/enum-representations.html#untagged
Variants§
Pitching(Box<PitchingStat>)
Hitting(Box<HittingStat>)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StatSplit
impl<'de> Deserialize<'de> for StatSplit
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
Auto Trait Implementations§
impl Freeze for StatSplit
impl RefUnwindSafe for StatSplit
impl Send for StatSplit
impl Sync for StatSplit
impl Unpin for StatSplit
impl UnsafeUnpin for StatSplit
impl UnwindSafe for StatSplit
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