pub struct MatchState {
pub chat: Vec<ChatMessage>,
pub users: BTreeMap<UserId, UserInfo>,
pub deaths: Vec<Death>,
pub rounds: Vec<Round>,
pub start_tick: ServerTick,
pub interval_per_tick: f32,
pub pauses: Vec<Pause>,
}
Fields§
§chat: Vec<ChatMessage>
§users: BTreeMap<UserId, UserInfo>
§deaths: Vec<Death>
§rounds: Vec<Round>
§start_tick: ServerTick
§interval_per_tick: f32
§pauses: Vec<Pause>
Trait Implementations§
Source§impl Debug for MatchState
impl Debug for MatchState
Source§impl Default for MatchState
impl Default for MatchState
Source§fn default() -> MatchState
fn default() -> MatchState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MatchState
impl<'de> Deserialize<'de> for MatchState
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 MatchState
impl PartialEq for MatchState
Source§impl Serialize for MatchState
impl Serialize for MatchState
impl StructuralPartialEq for MatchState
Auto Trait Implementations§
impl Freeze for MatchState
impl RefUnwindSafe for MatchState
impl Send for MatchState
impl Sync for MatchState
impl Unpin for MatchState
impl UnwindSafe for MatchState
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> 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