pub enum SystemServerStatsResponse {
Success {
command_id: Value,
data: SystemServerStatsOkResponseData,
message_id: String,
type_: Value,
},
Failed {
command_id: Value,
details: Option<String>,
message_id: String,
reason: TachyonCommandSubtype150Reason,
type_: Value,
},
}Expand description
SystemServerStatsResponse
JSON schema
{
"title": "SystemServerStatsResponse",
"anyOf": [
{
"title": "SystemServerStatsOkResponse",
"type": "object",
"required": [
"commandId",
"data",
"messageId",
"status",
"type"
],
"properties": {
"commandId": {
"const": "system/serverStats"
},
"data": {
"title": "SystemServerStatsOkResponseData",
"type": "object",
"required": [
"userCount"
],
"properties": {
"userCount": {
"type": "integer"
}
}
},
"messageId": {
"type": "string"
},
"status": {
"const": "success"
},
"type": {
"const": "response"
}
}
},
{
"title": "SystemServerStatsFailResponse",
"type": "object",
"required": [
"commandId",
"messageId",
"reason",
"status",
"type"
],
"properties": {
"commandId": {
"const": "system/serverStats"
},
"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 SystemServerStatsResponse
impl Clone for SystemServerStatsResponse
Source§fn clone(&self) -> SystemServerStatsResponse
fn clone(&self) -> SystemServerStatsResponse
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 SystemServerStatsResponse
impl Debug for SystemServerStatsResponse
Source§impl<'de> Deserialize<'de> for SystemServerStatsResponse
impl<'de> Deserialize<'de> for SystemServerStatsResponse
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 SystemServerStatsResponse
impl RefUnwindSafe for SystemServerStatsResponse
impl Send for SystemServerStatsResponse
impl Sync for SystemServerStatsResponse
impl Unpin for SystemServerStatsResponse
impl UnsafeUnpin for SystemServerStatsResponse
impl UnwindSafe for SystemServerStatsResponse
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