pub struct AutohostStatusEvent {
pub command_id: Value,
pub data: AutohostStatusEventData,
pub message_id: String,
pub type_: Value,
}Expand description
AutohostStatusEvent
JSON schema
{
"title": "AutohostStatusEvent",
"type": "object",
"required": [
"commandId",
"data",
"messageId",
"type"
],
"properties": {
"commandId": {
"const": "autohost/status"
},
"data": {
"title": "AutohostStatusEventData",
"examples": [
{
"availableEngines": [
"2025.01.5"
],
"currentBattles": 5,
"maxBattles": 10
}
],
"type": "object",
"required": [
"availableEngines",
"currentBattles",
"maxBattles"
],
"properties": {
"availableEngines": {
"description": "List of available engine versions on autohost",
"type": "array",
"items": {
"type": "string"
}
},
"currentBattles": {
"type": "integer",
"minimum": 0.0
},
"maxBattles": {
"description": "The maxBattles might be reported lower (e.g. 0) then currentBattles. Example: autohost is shutting down and doesn't want to accept any new battles.",
"type": "integer",
"minimum": 0.0
}
}
},
"messageId": {
"type": "string"
},
"type": {
"const": "event"
}
},
"tachyon": {
"scopes": [
"tachyon.lobby"
],
"source": "autohost",
"target": "server"
}
}Fields§
§command_id: Value§data: AutohostStatusEventData§message_id: String§type_: ValueImplementations§
Source§impl AutohostStatusEvent
impl AutohostStatusEvent
pub fn builder() -> AutohostStatusEvent
Trait Implementations§
Source§impl Clone for AutohostStatusEvent
impl Clone for AutohostStatusEvent
Source§fn clone(&self) -> AutohostStatusEvent
fn clone(&self) -> AutohostStatusEvent
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 AutohostStatusEvent
impl Debug for AutohostStatusEvent
Source§impl<'de> Deserialize<'de> for AutohostStatusEvent
impl<'de> Deserialize<'de> for AutohostStatusEvent
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
Source§impl From<AutohostStatusEvent> for AutohostStatusEvent
impl From<AutohostStatusEvent> for AutohostStatusEvent
Source§fn from(value: AutohostStatusEvent) -> Self
fn from(value: AutohostStatusEvent) -> Self
Converts to this type from the input type.
Source§impl Serialize for AutohostStatusEvent
impl Serialize for AutohostStatusEvent
Source§impl TryFrom<AutohostStatusEvent> for AutohostStatusEvent
impl TryFrom<AutohostStatusEvent> for AutohostStatusEvent
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: AutohostStatusEvent) -> Result<Self, ConversionError>
fn try_from(value: AutohostStatusEvent) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for AutohostStatusEvent
impl RefUnwindSafe for AutohostStatusEvent
impl Send for AutohostStatusEvent
impl Sync for AutohostStatusEvent
impl Unpin for AutohostStatusEvent
impl UnsafeUnpin for AutohostStatusEvent
impl UnwindSafe for AutohostStatusEvent
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