pub struct OutboundKeepAliveMessage {
pub message_id: Option<Uuid>,
pub message_type: SessionMessageType,
}
Expand description
Keep alive websocket messages.
JSON schema
{
"description": "Keep alive websocket messages.",
"type": "object",
"properties": {
"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": "KeepAlive",
"readOnly": true,
"allOf": [
{
"$ref": "#/components/schemas/SessionMessageType"
}
]
}
},
"additionalProperties": false
}
Fields§
§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 OutboundKeepAliveMessage
impl OutboundKeepAliveMessage
pub fn builder() -> OutboundKeepAliveMessage
Trait Implementations§
Source§impl Clone for OutboundKeepAliveMessage
impl Clone for OutboundKeepAliveMessage
Source§fn clone(&self) -> OutboundKeepAliveMessage
fn clone(&self) -> OutboundKeepAliveMessage
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 OutboundKeepAliveMessage
impl Debug for OutboundKeepAliveMessage
Source§impl<'de> Deserialize<'de> for OutboundKeepAliveMessage
impl<'de> Deserialize<'de> for OutboundKeepAliveMessage
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<&OutboundKeepAliveMessage> for OutboundKeepAliveMessage
impl From<&OutboundKeepAliveMessage> for OutboundKeepAliveMessage
Source§fn from(value: &OutboundKeepAliveMessage) -> Self
fn from(value: &OutboundKeepAliveMessage) -> Self
Converts to this type from the input type.
Source§impl From<OutboundKeepAliveMessage> for OutboundKeepAliveMessage
impl From<OutboundKeepAliveMessage> for OutboundKeepAliveMessage
Source§fn from(value: OutboundKeepAliveMessage) -> Self
fn from(value: OutboundKeepAliveMessage) -> Self
Converts to this type from the input type.
Source§impl From<OutboundKeepAliveMessage> for OutboundWebSocketMessage
impl From<OutboundKeepAliveMessage> for OutboundWebSocketMessage
Source§fn from(value: OutboundKeepAliveMessage) -> Self
fn from(value: OutboundKeepAliveMessage) -> Self
Converts to this type from the input type.
Source§impl Serialize for OutboundKeepAliveMessage
impl Serialize for OutboundKeepAliveMessage
Source§impl TryFrom<OutboundKeepAliveMessage> for OutboundKeepAliveMessage
impl TryFrom<OutboundKeepAliveMessage> for OutboundKeepAliveMessage
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: OutboundKeepAliveMessage) -> Result<Self, ConversionError>
fn try_from(value: OutboundKeepAliveMessage) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for OutboundKeepAliveMessage
impl RefUnwindSafe for OutboundKeepAliveMessage
impl Send for OutboundKeepAliveMessage
impl Sync for OutboundKeepAliveMessage
impl Unpin for OutboundKeepAliveMessage
impl UnwindSafe for OutboundKeepAliveMessage
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