pub struct Matchup {
pub batter: Person,
pub bat_side: Side,
pub pitcher: Person,
pub pitch_hand: Side,
pub batter_hot_cold_zones: Option<Vec<Zone>>,
pub post_on_first: Option<Person>,
pub post_on_second: Option<Person>,
pub post_on_third: Option<Person>,
}Fields§
§batter: Person§bat_side: Side§pitcher: Person§pitch_hand: Side§batter_hot_cold_zones: Option<Vec<Zone>>§post_on_first: Option<Person>§post_on_second: Option<Person>§post_on_third: Option<Person>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Matchup
impl<'de> Deserialize<'de> for Matchup
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 Matchup
impl RefUnwindSafe for Matchup
impl Send for Matchup
impl Sync for Matchup
impl Unpin for Matchup
impl UnsafeUnpin for Matchup
impl UnwindSafe for Matchup
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