pub struct PlayEventCommon {Show 14 fields
pub count: AtBatCount,
pub start_timestamp: DateTime<Utc>,
pub end_timestamp: DateTime<Utc>,
pub is_pitch: bool,
pub is_baserunning_play: bool,
pub is_substitution: bool,
pub player: Option<PersonId>,
pub umpire: Option<PersonId>,
pub position: Option<NamedPosition>,
pub replaced_player: Option<PersonId>,
pub batting_order_index: Option<BattingOrderIndex>,
pub base: Option<Base>,
pub reviews: Vec<ReviewData>,
pub injury_type: Option<String>,
/* private fields */
}Fields§
§count: AtBatCountAt the end of the play event
start_timestamp: DateTime<Utc>§end_timestamp: DateTime<Utc>§is_pitch: bool§is_baserunning_play: bool§is_substitution: boolPitching Subsitution, Defensive Switches, Pinch Hitting, etc.
player: Option<PersonId>A player involved in the play.
umpire: Option<PersonId>An umpire involved in the play, ex: Ejection
position: Option<NamedPosition>Position (typically a complement of player)
replaced_player: Option<PersonId>Also not always present, check by the EventType; PitchingSubsitutions don’t have it.
batting_order_index: Option<BattingOrderIndex>Batting Order Index, typically supplied with a DefensiveSwitch or OffensiveSubstitution
base: Option<Base>Base correlated with play, such as a stolen base
reviews: Vec<ReviewData>§injury_type: Option<String>Trait Implementations§
Source§impl Clone for PlayEventCommon
impl Clone for PlayEventCommon
Source§fn clone(&self) -> PlayEventCommon
fn clone(&self) -> PlayEventCommon
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlayEventCommon
impl Debug for PlayEventCommon
Source§impl<'de> Deserialize<'de> for PlayEventCommon
impl<'de> Deserialize<'de> for PlayEventCommon
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 PartialEq for PlayEventCommon
impl PartialEq for PlayEventCommon
impl StructuralPartialEq for PlayEventCommon
Auto Trait Implementations§
impl Freeze for PlayEventCommon
impl RefUnwindSafe for PlayEventCommon
impl Send for PlayEventCommon
impl Sync for PlayEventCommon
impl Unpin for PlayEventCommon
impl UnsafeUnpin for PlayEventCommon
impl UnwindSafe for PlayEventCommon
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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>
Converts
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>
Converts
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