pub struct LobbyUpdatedEventDataSpectatorsValue {
pub id: UserId,
pub join_queue_position: Option<f64>,
}Expand description
LobbyUpdatedEventDataSpectatorsValue
JSON schema
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"$ref": "#/definitions/userId"
},
"joinQueuePosition": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
}
}
}Fields§
§id: UserId§join_queue_position: Option<f64>Implementations§
Trait Implementations§
Source§impl Clone for LobbyUpdatedEventDataSpectatorsValue
impl Clone for LobbyUpdatedEventDataSpectatorsValue
Source§fn clone(&self) -> LobbyUpdatedEventDataSpectatorsValue
fn clone(&self) -> LobbyUpdatedEventDataSpectatorsValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for LobbyUpdatedEventDataSpectatorsValue
impl<'de> Deserialize<'de> for LobbyUpdatedEventDataSpectatorsValue
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
Source§impl From<LobbyUpdatedEventDataSpectatorsValue> for LobbyUpdatedEventDataSpectatorsValue
impl From<LobbyUpdatedEventDataSpectatorsValue> for LobbyUpdatedEventDataSpectatorsValue
Source§fn from(value: LobbyUpdatedEventDataSpectatorsValue) -> Self
fn from(value: LobbyUpdatedEventDataSpectatorsValue) -> Self
Converts to this type from the input type.
Source§impl TryFrom<LobbyUpdatedEventDataSpectatorsValue> for LobbyUpdatedEventDataSpectatorsValue
impl TryFrom<LobbyUpdatedEventDataSpectatorsValue> for LobbyUpdatedEventDataSpectatorsValue
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: LobbyUpdatedEventDataSpectatorsValue,
) -> Result<Self, ConversionError>
fn try_from( value: LobbyUpdatedEventDataSpectatorsValue, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for LobbyUpdatedEventDataSpectatorsValue
impl RefUnwindSafe for LobbyUpdatedEventDataSpectatorsValue
impl Send for LobbyUpdatedEventDataSpectatorsValue
impl Sync for LobbyUpdatedEventDataSpectatorsValue
impl Unpin for LobbyUpdatedEventDataSpectatorsValue
impl UnsafeUnpin for LobbyUpdatedEventDataSpectatorsValue
impl UnwindSafe for LobbyUpdatedEventDataSpectatorsValue
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