pub enum LobbyCreateResponse {
Success {
command_id: Value,
data: LobbyDetails,
message_id: String,
type_: Value,
},
Failed {
command_id: Value,
details: Option<String>,
message_id: String,
reason: TachyonCommandSubtype75Reason,
type_: Value,
},
}Expand description
LobbyCreateResponse
JSON schema
{
"title": "LobbyCreateResponse",
"anyOf": [
{
"title": "LobbyCreateOkResponse",
"type": "object",
"required": [
"commandId",
"data",
"messageId",
"status",
"type"
],
"properties": {
"commandId": {
"const": "lobby/create"
},
"data": {
"title": "LobbyCreateOkResponseData",
"$ref": "#/definitions/lobbyDetails"
},
"messageId": {
"type": "string"
},
"status": {
"const": "success"
},
"type": {
"const": "response"
}
}
},
{
"title": "LobbyCreateFailResponse",
"type": "object",
"required": [
"commandId",
"messageId",
"reason",
"status",
"type"
],
"properties": {
"commandId": {
"const": "lobby/create"
},
"details": {
"type": "string"
},
"messageId": {
"type": "string"
},
"reason": {
"enum": [
"internal_error",
"unauthorized",
"invalid_request",
"command_unimplemented"
]
},
"status": {
"const": "failed"
},
"type": {
"const": "response"
}
}
}
],
"tachyon": {
"scopes": [
"tachyon.lobby"
],
"source": "server",
"target": "user"
}
}Variants§
Trait Implementations§
Source§impl Clone for LobbyCreateResponse
impl Clone for LobbyCreateResponse
Source§fn clone(&self) -> LobbyCreateResponse
fn clone(&self) -> LobbyCreateResponse
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 LobbyCreateResponse
impl Debug for LobbyCreateResponse
Source§impl<'de> Deserialize<'de> for LobbyCreateResponse
impl<'de> Deserialize<'de> for LobbyCreateResponse
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
Auto Trait Implementations§
impl Freeze for LobbyCreateResponse
impl RefUnwindSafe for LobbyCreateResponse
impl Send for LobbyCreateResponse
impl Sync for LobbyCreateResponse
impl Unpin for LobbyCreateResponse
impl UnsafeUnpin for LobbyCreateResponse
impl UnwindSafe for LobbyCreateResponse
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