pub struct MqttMessageBindings {
pub payload_format_indicator: Option<u8>,
pub correlation_data: Option<Schema>,
pub content_type: Option<String>,
pub response_topic: Option<MqttResponseTopic>,
pub binding_version: Option<String>,
}Expand description
Mqtt message bindings
Fields§
§payload_format_indicator: Option<u8>Either: 0 (zero): Indicates that the payload is unspecified bytes, or 1: Indicates that the payload is UTF-8 encoded character data.
correlation_data: Option<Schema>Correlation Data is used by the sender of the request message to identify which request the response message is for when it is received.
content_type: Option<String>String describing the content type of the message payload. This should not conflict with the contentType field of the associated AsyncAPI Message object.
response_topic: Option<MqttResponseTopic>The topic (channel URI) for a response message.
binding_version: Option<String>The version of this binding. If omitted, “latest” MUST be assumed.
Trait Implementations§
Source§impl Clone for MqttMessageBindings
impl Clone for MqttMessageBindings
Source§fn clone(&self) -> MqttMessageBindings
fn clone(&self) -> MqttMessageBindings
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 MqttMessageBindings
impl Debug for MqttMessageBindings
Source§impl<'de> Deserialize<'de> for MqttMessageBindings
impl<'de> Deserialize<'de> for MqttMessageBindings
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MqttMessageBindings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MqttMessageBindings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for MqttMessageBindings
impl Serialize for MqttMessageBindings
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 MqttMessageBindings
impl RefUnwindSafe for MqttMessageBindings
impl Send for MqttMessageBindings
impl Sync for MqttMessageBindings
impl Unpin for MqttMessageBindings
impl UnsafeUnpin for MqttMessageBindings
impl UnwindSafe for MqttMessageBindings
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