pub struct RoomInfo {
pub code: String,
pub players: u8,
pub password: bool,
}Expand description
A room in the relay’s list.
Fields§
§code: StringThe room’s code.
players: u8How many players are in it.
password: boolWhether it asks for a password.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RoomInfo
impl<'de> Deserialize<'de> for RoomInfo
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
impl Eq for RoomInfo
impl StructuralPartialEq for RoomInfo
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