pub struct AutohostStatusEventData {
pub available_engines: Vec<String>,
pub current_battles: u64,
pub max_battles: u64,
}Expand description
AutohostStatusEventData
JSON schema
{
"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
}
}
}Fields§
§available_engines: Vec<String>List of available engine versions on autohost
current_battles: u64§max_battles: u64The maxBattles might be reported lower (e.g. 0) then currentBattles. Example: autohost is shutting down and doesn’t want to accept any new battles.
Implementations§
Source§impl AutohostStatusEventData
impl AutohostStatusEventData
pub fn builder() -> AutohostStatusEventData
Trait Implementations§
Source§impl Clone for AutohostStatusEventData
impl Clone for AutohostStatusEventData
Source§fn clone(&self) -> AutohostStatusEventData
fn clone(&self) -> AutohostStatusEventData
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 AutohostStatusEventData
impl Debug for AutohostStatusEventData
Source§impl<'de> Deserialize<'de> for AutohostStatusEventData
impl<'de> Deserialize<'de> for AutohostStatusEventData
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<AutohostStatusEventData> for AutohostStatusEventData
impl From<AutohostStatusEventData> for AutohostStatusEventData
Source§fn from(value: AutohostStatusEventData) -> Self
fn from(value: AutohostStatusEventData) -> Self
Converts to this type from the input type.
Source§impl Serialize for AutohostStatusEventData
impl Serialize for AutohostStatusEventData
Source§impl TryFrom<AutohostStatusEventData> for AutohostStatusEventData
impl TryFrom<AutohostStatusEventData> for AutohostStatusEventData
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: AutohostStatusEventData) -> Result<Self, ConversionError>
fn try_from(value: AutohostStatusEventData) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for AutohostStatusEventData
impl RefUnwindSafe for AutohostStatusEventData
impl Send for AutohostStatusEventData
impl Sync for AutohostStatusEventData
impl Unpin for AutohostStatusEventData
impl UnsafeUnpin for AutohostStatusEventData
impl UnwindSafe for AutohostStatusEventData
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