pub struct Lineup {
pub team_id: String,
pub formation: Option<String>,
pub starters: Vec<Player>,
pub substitutes: Vec<Player>,
}Expand description
A team’s lineup for a match.
Fields§
§team_id: StringProvider team id this lineup belongs to.
formation: Option<String>Formation string, e.g. “4-3-3”, when known.
starters: Vec<Player>Starting XI.
substitutes: Vec<Player>Substitutes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Lineup
impl<'de> Deserialize<'de> for Lineup
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
impl Eq for Lineup
impl StructuralPartialEq for Lineup
Auto Trait Implementations§
impl Freeze for Lineup
impl RefUnwindSafe for Lineup
impl Send for Lineup
impl Sync for Lineup
impl Unpin for Lineup
impl UnsafeUnpin for Lineup
impl UnwindSafe for Lineup
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