pub struct LobbyUpdateBotRequest {
pub command_id: Value,
pub data: LobbyUpdateBotRequestData,
pub message_id: String,
pub type_: Value,
}Expand description
LobbyUpdateBotRequest
JSON schema
{
"title": "LobbyUpdateBotRequest",
"type": "object",
"required": [
"commandId",
"data",
"messageId",
"type"
],
"properties": {
"commandId": {
"const": "lobby/updateBot"
},
"data": {
"title": "LobbyUpdateBotRequestData",
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"description": "name to display in the lobby",
"type": "string",
"maxLength": 20
},
"options": {
"type": "object",
"patternProperties": {
"^.*$": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
}
},
"shortName": {
"description": "short name of the bot. Used to uniquely identify which bot to run",
"type": "string"
},
"version": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
}
},
"messageId": {
"type": "string"
},
"type": {
"const": "request"
}
},
"tachyon": {
"scopes": [
"tachyon.lobby"
],
"source": "user",
"target": "server"
}
}Fields§
§command_id: Value§data: LobbyUpdateBotRequestData§message_id: String§type_: ValueImplementations§
Source§impl LobbyUpdateBotRequest
impl LobbyUpdateBotRequest
pub fn builder() -> LobbyUpdateBotRequest
Trait Implementations§
Source§impl Clone for LobbyUpdateBotRequest
impl Clone for LobbyUpdateBotRequest
Source§fn clone(&self) -> LobbyUpdateBotRequest
fn clone(&self) -> LobbyUpdateBotRequest
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 LobbyUpdateBotRequest
impl Debug for LobbyUpdateBotRequest
Source§impl<'de> Deserialize<'de> for LobbyUpdateBotRequest
impl<'de> Deserialize<'de> for LobbyUpdateBotRequest
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<LobbyUpdateBotRequest> for LobbyUpdateBotRequest
impl From<LobbyUpdateBotRequest> for LobbyUpdateBotRequest
Source§fn from(value: LobbyUpdateBotRequest) -> Self
fn from(value: LobbyUpdateBotRequest) -> Self
Converts to this type from the input type.
Source§impl Serialize for LobbyUpdateBotRequest
impl Serialize for LobbyUpdateBotRequest
Source§impl TryFrom<LobbyUpdateBotRequest> for LobbyUpdateBotRequest
impl TryFrom<LobbyUpdateBotRequest> for LobbyUpdateBotRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: LobbyUpdateBotRequest) -> Result<Self, ConversionError>
fn try_from(value: LobbyUpdateBotRequest) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for LobbyUpdateBotRequest
impl RefUnwindSafe for LobbyUpdateBotRequest
impl Send for LobbyUpdateBotRequest
impl Sync for LobbyUpdateBotRequest
impl Unpin for LobbyUpdateBotRequest
impl UnsafeUnpin for LobbyUpdateBotRequest
impl UnwindSafe for LobbyUpdateBotRequest
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