pub struct AutohostAddPlayerRequest {
pub command_id: Value,
pub data: AutohostAddPlayerRequestData,
pub message_id: String,
pub type_: Value,
}Expand description
AutohostAddPlayerRequest
JSON schema
{
"title": "AutohostAddPlayerRequest",
"type": "object",
"required": [
"commandId",
"data",
"messageId",
"type"
],
"properties": {
"commandId": {
"const": "autohost/addPlayer"
},
"data": {
"title": "AutohostAddPlayerRequestData",
"type": "object",
"required": [
"battleId",
"name",
"password",
"userId"
],
"properties": {
"battleId": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string"
},
"password": {
"type": "string"
},
"userId": {
"$ref": "#/definitions/userId"
}
}
},
"messageId": {
"type": "string"
},
"type": {
"const": "request"
}
},
"tachyon": {
"scopes": [
"tachyon.lobby"
],
"source": "server",
"target": "autohost"
}
}Fields§
§command_id: Value§data: AutohostAddPlayerRequestData§message_id: String§type_: ValueImplementations§
Source§impl AutohostAddPlayerRequest
impl AutohostAddPlayerRequest
pub fn builder() -> AutohostAddPlayerRequest
Trait Implementations§
Source§impl Clone for AutohostAddPlayerRequest
impl Clone for AutohostAddPlayerRequest
Source§fn clone(&self) -> AutohostAddPlayerRequest
fn clone(&self) -> AutohostAddPlayerRequest
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 AutohostAddPlayerRequest
impl Debug for AutohostAddPlayerRequest
Source§impl<'de> Deserialize<'de> for AutohostAddPlayerRequest
impl<'de> Deserialize<'de> for AutohostAddPlayerRequest
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<AutohostAddPlayerRequest> for AutohostAddPlayerRequest
impl From<AutohostAddPlayerRequest> for AutohostAddPlayerRequest
Source§fn from(value: AutohostAddPlayerRequest) -> Self
fn from(value: AutohostAddPlayerRequest) -> Self
Converts to this type from the input type.
Source§impl Serialize for AutohostAddPlayerRequest
impl Serialize for AutohostAddPlayerRequest
Source§impl TryFrom<AutohostAddPlayerRequest> for AutohostAddPlayerRequest
impl TryFrom<AutohostAddPlayerRequest> for AutohostAddPlayerRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: AutohostAddPlayerRequest) -> Result<Self, ConversionError>
fn try_from(value: AutohostAddPlayerRequest) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for AutohostAddPlayerRequest
impl RefUnwindSafe for AutohostAddPlayerRequest
impl Send for AutohostAddPlayerRequest
impl Sync for AutohostAddPlayerRequest
impl Unpin for AutohostAddPlayerRequest
impl UnsafeUnpin for AutohostAddPlayerRequest
impl UnwindSafe for AutohostAddPlayerRequest
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