Struct de_lobby_model::games::GameConfig
source · pub struct GameConfig {
name: String,
max_players: u8,
map: GameMap,
}
Fields§
§name: String
§max_players: u8
§map: GameMap
Implementations§
Trait Implementations§
source§impl Clone for GameConfig
impl Clone for GameConfig
source§fn clone(&self) -> GameConfig
fn clone(&self) -> GameConfig
Returns a copy 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<'de> Deserialize<'de> for GameConfig
impl<'de> Deserialize<'de> for GameConfig
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 Serialize for GameConfig
impl Serialize for GameConfig
source§impl Validatable for GameConfig
impl Validatable for GameConfig
Auto Trait Implementations§
impl Freeze for GameConfig
impl RefUnwindSafe for GameConfig
impl Send for GameConfig
impl Sync for GameConfig
impl Unpin for GameConfig
impl UnwindSafe for GameConfig
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