pub struct Bot {
pub ai_options: HashMap<BotAiOptionsKey, String>,
pub ai_short_name: String,
pub ai_version: Option<String>,
pub custom_properties: Option<CustomStartScriptProperties>,
pub host_user_id: String,
pub name: Option<String>,
}Expand description
Bot
JSON schema
{
"type": "object",
"required": [
"aiShortName",
"hostUserId"
],
"properties": {
"aiOptions": {
"description": "AI-specific options",
"type": "object",
"patternProperties": {
"^.*$": {
"type": "string"
}
}
},
"aiShortName": {
"description": "Short name of the AI library",
"type": "string"
},
"aiVersion": {
"type": "string"
},
"customProperties": {
"$ref": "#/definitions/customStartScriptProperties"
},
"hostUserId": {
"description": "UserId of the player hosting this AI",
"type": "string"
},
"name": {
"type": "string"
}
}
}Fields§
§ai_options: HashMap<BotAiOptionsKey, String>AI-specific options
ai_short_name: StringShort name of the AI library
ai_version: Option<String>§custom_properties: Option<CustomStartScriptProperties>§host_user_id: StringUserId of the player hosting this AI
name: Option<String>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bot
impl<'de> Deserialize<'de> for Bot
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 Bot
impl RefUnwindSafe for Bot
impl Send for Bot
impl Sync for Bot
impl Unpin for Bot
impl UnsafeUnpin for Bot
impl UnwindSafe for Bot
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