pub struct PlayAbout {
pub at_bat_idx: usize,
pub inning_half: InningHalf,
pub inning: Inning,
pub start_timestamp: NaiveDateTime,
pub end_timestamp: NaiveDateTime,
pub is_complete: bool,
pub is_scoring_play: Option<bool>,
pub has_review: bool,
pub has_out: bool,
pub captivating_index: usize,
/* private fields */
}Expand description
Miscallaneous data regarding a play
Fields§
§at_bat_idx: usizeOrdinal at bat of the game (starts at 0)
inning_half: InningHalfThe inning half this play is in
inning: InningThe inning this play is in
start_timestamp: NaiveDateTimeThe timestamp that this play begins; includes milliseconds
end_timestamp: NaiveDateTimeThe timestamp that this play ends at; includes milliseconds
is_complete: boolWhether the play is “complete” or not, i.e. opposite of ongoing.
Once a play is complete it cannot be edited
is_scoring_play: Option<bool>Whether the play itself is scoring, such as a Home Run.
Note that Plays that include PlayEvents that score runs that are not part of the Play (such as stealing home) do not indicate this as true.
This is the predicate for Plays::scoring_plays
has_review: boolWhether the play has a replay review occur. Note that At-Bats can have multiple challenges occur.
has_out: boolWhether the play has counted towards an out so far.
todo: check if includes play events like pickoffs.
captivating_index: usizeOrdinal ranking for +/- WPA effect.
1 means largest effect on WPA,
2 means second most, etc.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PlayAbout
impl<'de> Deserialize<'de> for PlayAbout
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>,
impl StructuralPartialEq for PlayAbout
Auto Trait Implementations§
impl Freeze for PlayAbout
impl RefUnwindSafe for PlayAbout
impl Send for PlayAbout
impl Sync for PlayAbout
impl Unpin for PlayAbout
impl UnsafeUnpin for PlayAbout
impl UnwindSafe for PlayAbout
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,
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>
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