Struct de_lobby_model::GamePartial
source · pub struct GamePartial {
config: GameConfig,
num_players: u8,
}
Fields§
§config: GameConfig
§num_players: u8
Implementations§
source§impl GamePartial
impl GamePartial
pub fn new(config: GameConfig, num_players: u8) -> Self
pub fn config(&self) -> &GameConfig
pub fn num_players(&self) -> u8
Trait Implementations§
source§impl<'de> Deserialize<'de> for GamePartial
impl<'de> Deserialize<'de> for GamePartial
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
Auto Trait Implementations§
impl Freeze for GamePartial
impl RefUnwindSafe for GamePartial
impl Send for GamePartial
impl Sync for GamePartial
impl Unpin for GamePartial
impl UnwindSafe for GamePartial
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