pub struct MatchmakingFoundEvent {
pub command_id: Value,
pub data: MatchmakingFoundEventData,
pub message_id: String,
pub type_: Value,
}Expand description
MatchmakingFoundEvent
JSON schema
{
"title": "MatchmakingFoundEvent",
"type": "object",
"required": [
"commandId",
"data",
"messageId",
"type"
],
"properties": {
"commandId": {
"const": "matchmaking/found"
},
"data": {
"title": "MatchmakingFoundEventData",
"type": "object",
"required": [
"queueId",
"timeoutMs"
],
"properties": {
"queueId": {
"type": "string"
},
"timeoutMs": {
"type": "integer"
}
}
},
"messageId": {
"type": "string"
},
"type": {
"const": "event"
}
},
"tachyon": {
"scopes": [
"tachyon.lobby"
],
"source": "server",
"target": "user"
}
}Fields§
§command_id: Value§data: MatchmakingFoundEventData§message_id: String§type_: ValueImplementations§
Source§impl MatchmakingFoundEvent
impl MatchmakingFoundEvent
pub fn builder() -> MatchmakingFoundEvent
Trait Implementations§
Source§impl Clone for MatchmakingFoundEvent
impl Clone for MatchmakingFoundEvent
Source§fn clone(&self) -> MatchmakingFoundEvent
fn clone(&self) -> MatchmakingFoundEvent
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 Debug for MatchmakingFoundEvent
impl Debug for MatchmakingFoundEvent
Source§impl<'de> Deserialize<'de> for MatchmakingFoundEvent
impl<'de> Deserialize<'de> for MatchmakingFoundEvent
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<MatchmakingFoundEvent> for MatchmakingFoundEvent
impl From<MatchmakingFoundEvent> for MatchmakingFoundEvent
Source§fn from(value: MatchmakingFoundEvent) -> Self
fn from(value: MatchmakingFoundEvent) -> Self
Converts to this type from the input type.
Source§impl Serialize for MatchmakingFoundEvent
impl Serialize for MatchmakingFoundEvent
Source§impl TryFrom<MatchmakingFoundEvent> for MatchmakingFoundEvent
impl TryFrom<MatchmakingFoundEvent> for MatchmakingFoundEvent
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: MatchmakingFoundEvent) -> Result<Self, ConversionError>
fn try_from(value: MatchmakingFoundEvent) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for MatchmakingFoundEvent
impl RefUnwindSafe for MatchmakingFoundEvent
impl Send for MatchmakingFoundEvent
impl Sync for MatchmakingFoundEvent
impl Unpin for MatchmakingFoundEvent
impl UnsafeUnpin for MatchmakingFoundEvent
impl UnwindSafe for MatchmakingFoundEvent
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