pub struct MqttServerBindings {
pub client_id: Option<String>,
pub clean_session: Option<bool>,
pub last_will: Option<MqttLastWill>,
pub keep_alive: Option<u32>,
pub session_expiry_interval: Option<MqttBindingNumValue>,
pub max_packet_size: Option<MqttBindingNumValue>,
pub binding_version: Option<String>,
}Expand description
Mqtt server binding
Fields§
§client_id: Option<String>The client identifier.
clean_session: Option<bool>Whether to create a persistent connection or not. When false, the connection will be persistent. This is called clean start in MQTTv5.
last_will: Option<MqttLastWill>Last Will and Testament configuration. topic, qos, message and retain are properties of this object as shown below.
keep_alive: Option<u32>Interval in seconds of the longest period of time the broker and the client can endure without sending a message.
session_expiry_interval: Option<MqttBindingNumValue>Interval in seconds or a Schema Object containing the definition of the interval. The broker maintains a session for a disconnected client until this interval expires.
max_packet_size: Option<MqttBindingNumValue>Number of bytes or a Schema Object representing the maximum packet size the client is willing to accept.
binding_version: Option<String>The version of this binding. If omitted, “latest” MUST be assumed.
Trait Implementations§
Source§impl Clone for MqttServerBindings
impl Clone for MqttServerBindings
Source§fn clone(&self) -> MqttServerBindings
fn clone(&self) -> MqttServerBindings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MqttServerBindings
impl Debug for MqttServerBindings
Source§impl<'de> Deserialize<'de> for MqttServerBindings
impl<'de> Deserialize<'de> for MqttServerBindings
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MqttServerBindings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MqttServerBindings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for MqttServerBindings
impl Serialize for MqttServerBindings
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for MqttServerBindings
impl RefUnwindSafe for MqttServerBindings
impl Send for MqttServerBindings
impl Sync for MqttServerBindings
impl Unpin for MqttServerBindings
impl UnsafeUnpin for MqttServerBindings
impl UnwindSafe for MqttServerBindings
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