pub enum UserSubscribeUpdatesResponse {
Success {
command_id: Value,
message_id: String,
type_: Value,
},
Failed {
command_id: Value,
details: Option<String>,
message_id: String,
reason: TachyonCommandSubtype155Reason,
type_: Value,
},
}Expand description
UserSubscribeUpdatesResponse
JSON schema
{
"title": "UserSubscribeUpdatesResponse",
"anyOf": [
{
"title": "UserSubscribeUpdatesOkResponse",
"type": "object",
"required": [
"commandId",
"messageId",
"status",
"type"
],
"properties": {
"commandId": {
"const": "user/subscribeUpdates"
},
"messageId": {
"type": "string"
},
"status": {
"const": "success"
},
"type": {
"const": "response"
}
}
},
{
"title": "UserSubscribeUpdatesFailResponse",
"type": "object",
"required": [
"commandId",
"messageId",
"reason",
"status",
"type"
],
"properties": {
"commandId": {
"const": "user/subscribeUpdates"
},
"details": {
"type": "string"
},
"messageId": {
"type": "string"
},
"reason": {
"enum": [
"subscription_limit_reached",
"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 UserSubscribeUpdatesResponse
impl Clone for UserSubscribeUpdatesResponse
Source§fn clone(&self) -> UserSubscribeUpdatesResponse
fn clone(&self) -> UserSubscribeUpdatesResponse
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 UserSubscribeUpdatesResponse
impl Debug for UserSubscribeUpdatesResponse
Source§impl<'de> Deserialize<'de> for UserSubscribeUpdatesResponse
impl<'de> Deserialize<'de> for UserSubscribeUpdatesResponse
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 UserSubscribeUpdatesResponse
impl RefUnwindSafe for UserSubscribeUpdatesResponse
impl Send for UserSubscribeUpdatesResponse
impl Sync for UserSubscribeUpdatesResponse
impl Unpin for UserSubscribeUpdatesResponse
impl UnsafeUnpin for UserSubscribeUpdatesResponse
impl UnwindSafe for UserSubscribeUpdatesResponse
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