pub struct RoomInfo {Show 24 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 allow_spectators: bool,
pub can_spectate: bool,
pub spectator_count: usize,
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>,
pub matchmade_bracket: Option<u8>,
pub matchmade_bot_fill: bool,
pub table_bracket: Option<u8>,
pub auto_start: bool,
pub rematch: Option<RematchInfo>,
}Fields§
§room_id: String§room_name: String§host: String§protocol_version: u32§hosted: bool§official: bool§password_protected: bool§allow_spectators: bool§can_spectate: bool§spectator_count: usize§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>§matchmade_bracket: Option<u8>§matchmade_bot_fill: bool§table_bracket: Option<u8>§auto_start: bool§rematch: Option<RematchInfo>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 Forget for RoomInfo
impl Freeze for RoomInfowhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<RoomPlayerInfo>: Freeze,
PhantomData<RematchPlayerInfo>: Freeze,
impl Move for RoomInfo
impl RefUnwindSafe for RoomInfo
impl Send for RoomInfowhere
RawVecInner: Send,
impl Sync for RoomInfowhere
RawVecInner: Sync,
impl Unpin for RoomInfo
impl UnsafeUnpin for RoomInfowhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<RoomPlayerInfo>: UnsafeUnpin,
PhantomData<RematchPlayerInfo>: UnsafeUnpin,
impl UnwindSafe for RoomInfowhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.