pub struct TeamWithGameData {
pub team: NamedTeam,
pub team_stats: BoxscoreStatCollection,
pub players: FxHashMap<PersonId, PlayerWithGameData>,
pub batters: Vec<PersonId>,
pub pitchers: Vec<PersonId>,
pub bench: Vec<PersonId>,
pub bullpen: Vec<PersonId>,
pub batting_order: [PersonId; 9],
pub sectioned_labelled_values: Vec<SectionedLabelledValues>,
pub notes: Vec<LabelledValue>,
}Expand description
A team with some potentially useful information regarding their performance in the current game.
Fields§
§team: NamedTeam§team_stats: BoxscoreStatCollection§players: FxHashMap<PersonId, PlayerWithGameData>§batters: Vec<PersonId>§pitchers: Vec<PersonId>§bench: Vec<PersonId>§bullpen: Vec<PersonId>§batting_order: [PersonId; 9]§sectioned_labelled_values: Vec<SectionedLabelledValues>§notes: Vec<LabelledValue>Trait Implementations§
Source§impl Clone for TeamWithGameData
impl Clone for TeamWithGameData
Source§fn clone(&self) -> TeamWithGameData
fn clone(&self) -> TeamWithGameData
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 TeamWithGameData
impl Debug for TeamWithGameData
Source§impl<'de> Deserialize<'de> for TeamWithGameData
impl<'de> Deserialize<'de> for TeamWithGameData
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 TeamWithGameData
impl PartialEq for TeamWithGameData
impl StructuralPartialEq for TeamWithGameData
Auto Trait Implementations§
impl Freeze for TeamWithGameData
impl RefUnwindSafe for TeamWithGameData
impl Send for TeamWithGameData
impl Sync for TeamWithGameData
impl Unpin for TeamWithGameData
impl UnsafeUnpin for TeamWithGameData
impl UnwindSafe for TeamWithGameData
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