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