pub struct MatchGame {
pub game_id: u64,
pub start_time: OffsetDateTime,
pub end_time: Option<OffsetDateTime>,
pub mode: GameMode,
pub scoring_type: ScoringType,
pub team_type: TeamType,
pub mods: GameMods,
pub map: Option<BeatmapCompact>,
pub scores: Vec<MatchScore>,
}
Fields§
§game_id: u64
§start_time: OffsetDateTime
§end_time: Option<OffsetDateTime>
§mode: GameMode
§scoring_type: ScoringType
§team_type: TeamType
§mods: GameMods
§map: Option<BeatmapCompact>
BeatmapCompact
of the game;
None
if the map was deleted
scores: Vec<MatchScore>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for MatchGame
impl<'de> Deserialize<'de> for MatchGame
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<MatchGame> for MatchGame
impl PartialEq<MatchGame> for MatchGame
impl StructuralPartialEq for MatchGame
Auto Trait Implementations§
impl RefUnwindSafe for MatchGame
impl Send for MatchGame
impl Sync for MatchGame
impl Unpin for MatchGame
impl UnwindSafe for MatchGame
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