pub struct ConnectGame {
pub name: String,
pub role: ClientRole,
pub lobby_id: LobbyId,
}Fields§
§name: String§role: ClientRole§lobby_id: LobbyIdImplementations§
Source§impl ConnectGame
impl ConnectGame
pub fn validate(&self) -> Result<(), ConnectGameError>
Trait Implementations§
Source§impl Debug for ConnectGame
impl Debug for ConnectGame
Source§impl<'de> Deserialize<'de> for ConnectGame
impl<'de> Deserialize<'de> for ConnectGame
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 ConnectGame
impl RefUnwindSafe for ConnectGame
impl Send for ConnectGame
impl Sync for ConnectGame
impl Unpin for ConnectGame
impl UnwindSafe for ConnectGame
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