pub enum AutohostAddPlayerResponse {
Success {
command_id: Value,
message_id: String,
type_: Value,
},
Failed {
command_id: Value,
details: Option<String>,
message_id: String,
reason: TachyonCommandSubtype1Reason,
type_: Value,
},
}Expand description
AutohostAddPlayerResponse
JSON schema
{
"title": "AutohostAddPlayerResponse",
"anyOf": [
{
"title": "AutohostAddPlayerOkResponse",
"type": "object",
"required": [
"commandId",
"messageId",
"status",
"type"
],
"properties": {
"commandId": {
"const": "autohost/addPlayer"
},
"messageId": {
"type": "string"
},
"status": {
"const": "success"
},
"type": {
"const": "response"
}
}
},
{
"title": "AutohostAddPlayerFailResponse",
"type": "object",
"required": [
"commandId",
"messageId",
"reason",
"status",
"type"
],
"properties": {
"commandId": {
"const": "autohost/addPlayer"
},
"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": "autohost",
"target": "server"
}
}Variants§
Trait Implementations§
Source§impl Clone for AutohostAddPlayerResponse
impl Clone for AutohostAddPlayerResponse
Source§fn clone(&self) -> AutohostAddPlayerResponse
fn clone(&self) -> AutohostAddPlayerResponse
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 AutohostAddPlayerResponse
impl Debug for AutohostAddPlayerResponse
Source§impl<'de> Deserialize<'de> for AutohostAddPlayerResponse
impl<'de> Deserialize<'de> for AutohostAddPlayerResponse
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 AutohostAddPlayerResponse
impl RefUnwindSafe for AutohostAddPlayerResponse
impl Send for AutohostAddPlayerResponse
impl Sync for AutohostAddPlayerResponse
impl Unpin for AutohostAddPlayerResponse
impl UnsafeUnpin for AutohostAddPlayerResponse
impl UnwindSafe for AutohostAddPlayerResponse
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