pub struct GeneralCommandMessage {
pub data: Option<GeneralCommand>,
pub message_id: Option<Uuid>,
pub message_type: SessionMessageType,
}
Expand description
General command websocket message.
JSON schema
{
"description": "General command websocket message.",
"type": "object",
"properties": {
"Data": {
"description": "Gets or sets the data.",
"allOf": [
{
"$ref": "#/components/schemas/GeneralCommand"
}
]
},
"MessageId": {
"description": "Gets or sets the message id.",
"type": "string",
"format": "uuid"
},
"MessageType": {
"description": "The different kinds of messages that are used in
the WebSocket api.",
"default": "GeneralCommand",
"readOnly": true,
"allOf": [
{
"$ref": "#/components/schemas/SessionMessageType"
}
]
}
},
"additionalProperties": false
}
Fields§
§data: Option<GeneralCommand>
Gets or sets the data.
message_id: Option<Uuid>
Gets or sets the message id.
message_type: SessionMessageType
The different kinds of messages that are used in the WebSocket api.
Implementations§
Source§impl GeneralCommandMessage
impl GeneralCommandMessage
pub fn builder() -> GeneralCommandMessage
Trait Implementations§
Source§impl Clone for GeneralCommandMessage
impl Clone for GeneralCommandMessage
Source§fn clone(&self) -> GeneralCommandMessage
fn clone(&self) -> GeneralCommandMessage
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 GeneralCommandMessage
impl Debug for GeneralCommandMessage
Source§impl<'de> Deserialize<'de> for GeneralCommandMessage
impl<'de> Deserialize<'de> for GeneralCommandMessage
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<&GeneralCommandMessage> for GeneralCommandMessage
impl From<&GeneralCommandMessage> for GeneralCommandMessage
Source§fn from(value: &GeneralCommandMessage) -> Self
fn from(value: &GeneralCommandMessage) -> Self
Converts to this type from the input type.
Source§impl From<GeneralCommandMessage> for GeneralCommandMessage
impl From<GeneralCommandMessage> for GeneralCommandMessage
Source§fn from(value: GeneralCommandMessage) -> Self
fn from(value: GeneralCommandMessage) -> Self
Converts to this type from the input type.
Source§impl From<GeneralCommandMessage> for OutboundWebSocketMessage
impl From<GeneralCommandMessage> for OutboundWebSocketMessage
Source§fn from(value: GeneralCommandMessage) -> Self
fn from(value: GeneralCommandMessage) -> Self
Converts to this type from the input type.
Source§impl Serialize for GeneralCommandMessage
impl Serialize for GeneralCommandMessage
Source§impl TryFrom<GeneralCommandMessage> for GeneralCommandMessage
impl TryFrom<GeneralCommandMessage> for GeneralCommandMessage
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: GeneralCommandMessage) -> Result<Self, ConversionError>
fn try_from(value: GeneralCommandMessage) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for GeneralCommandMessage
impl RefUnwindSafe for GeneralCommandMessage
impl Send for GeneralCommandMessage
impl Sync for GeneralCommandMessage
impl Unpin for GeneralCommandMessage
impl UnwindSafe for GeneralCommandMessage
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