pub struct ModeCap {
pub game_type: GameType,
pub max_players: u8,
}Expand description
A per-mode player cap.
Fields§
§game_type: GameTypeThe mode the cap applies to.
max_players: u8Maximum players in a game of that mode.
Trait Implementations§
impl Copy for ModeCap
Source§impl<'de> Deserialize<'de> for ModeCap
impl<'de> Deserialize<'de> for ModeCap
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 ModeCap
impl StructuralPartialEq for ModeCap
Auto Trait Implementations§
impl Freeze for ModeCap
impl RefUnwindSafe for ModeCap
impl Send for ModeCap
impl Sync for ModeCap
impl Unpin for ModeCap
impl UnsafeUnpin for ModeCap
impl UnwindSafe for ModeCap
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