pub enum LobbyAddBotResponse {
Success {
command_id: Value,
data: LobbyAddBotOkResponseData,
message_id: String,
type_: Value,
},
Failed {
command_id: Value,
details: Option<String>,
message_id: String,
reason: TachyonCommandSubtype71Reason,
type_: Value,
},
}Expand description
LobbyAddBotResponse
JSON schema
{
"title": "LobbyAddBotResponse",
"anyOf": [
{
"title": "LobbyAddBotOkResponse",
"type": "object",
"required": [
"commandId",
"data",
"messageId",
"status",
"type"
],
"properties": {
"commandId": {
"const": "lobby/addBot"
},
"data": {
"title": "LobbyAddBotOkResponseData",
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"description": "The id the server generated for this bot",
"type": "string"
}
}
},
"messageId": {
"type": "string"
},
"status": {
"const": "success"
},
"type": {
"const": "response"
}
}
},
{
"title": "LobbyAddBotFailResponse",
"type": "object",
"required": [
"commandId",
"messageId",
"reason",
"status",
"type"
],
"properties": {
"commandId": {
"const": "lobby/addBot"
},
"details": {
"type": "string"
},
"messageId": {
"type": "string"
},
"reason": {
"enum": [
"not_in_lobby",
"ally_team_full",
"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 LobbyAddBotResponse
impl Clone for LobbyAddBotResponse
Source§fn clone(&self) -> LobbyAddBotResponse
fn clone(&self) -> LobbyAddBotResponse
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 LobbyAddBotResponse
impl Debug for LobbyAddBotResponse
Source§impl<'de> Deserialize<'de> for LobbyAddBotResponse
impl<'de> Deserialize<'de> for LobbyAddBotResponse
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 LobbyAddBotResponse
impl RefUnwindSafe for LobbyAddBotResponse
impl Send for LobbyAddBotResponse
impl Sync for LobbyAddBotResponse
impl Unpin for LobbyAddBotResponse
impl UnsafeUnpin for LobbyAddBotResponse
impl UnwindSafe for LobbyAddBotResponse
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