pub struct RoomInfo {Show 16 fields
pub room_id: String,
pub room_name: String,
pub host: String,
pub protocol_version: u32,
pub hosted: bool,
pub official: bool,
pub password_protected: bool,
pub players: Vec<RoomPlayerInfo>,
pub max_players: u8,
pub format: GameFormat,
pub status: RoomStatus,
pub engine: EngineKind,
pub reconnect_timeout_s: u32,
pub table_style: Option<String>,
pub draft_config: Option<DraftConfig>,
pub sealed_config: Option<SealedConfig>,
}Fields§
§room_id: String§room_name: String§host: String§protocol_version: u32§hosted: bool§official: bool§password_protected: bool§players: Vec<RoomPlayerInfo>§max_players: u8§format: GameFormat§status: RoomStatus§engine: EngineKind§reconnect_timeout_s: u32§table_style: Option<String>§draft_config: Option<DraftConfig>§sealed_config: Option<SealedConfig>Trait Implementations§
Source§impl<'de> Deserialize<'de> for RoomInfo
impl<'de> Deserialize<'de> for RoomInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RoomInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RoomInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RoomInfo
impl Serialize for RoomInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for RoomInfo
impl RefUnwindSafe for RoomInfo
impl Send for RoomInfo
impl Sync for RoomInfo
impl Unpin for RoomInfo
impl UnsafeUnpin for RoomInfo
impl UnwindSafe for RoomInfo
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