#[non_exhaustive]pub struct GetRetainedMessageOutput {
pub topic: Option<String>,
pub payload: Option<Blob>,
pub qos: i32,
pub last_modified_time: i64,
pub user_properties: Option<Blob>,
/* private fields */
}
Expand description
The output from the GetRetainedMessage operation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.topic: Option<String>
The topic name to which the retained message was published.
payload: Option<Blob>
The Base64-encoded message payload of the retained message body.
qos: i32
The quality of service (QoS) level used to publish the retained message.
last_modified_time: i64
The Epoch date and time, in milliseconds, when the retained message was stored by IoT.
user_properties: Option<Blob>
A base64-encoded JSON string that includes an array of JSON objects, or null if the retained message doesn't include any user properties.
The following example userProperties
parameter is a JSON string that represents two user properties. Note that it will be base64-encoded:
[{"deviceName": "alpha"}, {"deviceCnt": "45"}]
Implementations§
source§impl GetRetainedMessageOutput
impl GetRetainedMessageOutput
sourcepub fn topic(&self) -> Option<&str>
pub fn topic(&self) -> Option<&str>
The topic name to which the retained message was published.
sourcepub fn payload(&self) -> Option<&Blob>
pub fn payload(&self) -> Option<&Blob>
The Base64-encoded message payload of the retained message body.
sourcepub fn qos(&self) -> i32
pub fn qos(&self) -> i32
The quality of service (QoS) level used to publish the retained message.
sourcepub fn last_modified_time(&self) -> i64
pub fn last_modified_time(&self) -> i64
The Epoch date and time, in milliseconds, when the retained message was stored by IoT.
sourcepub fn user_properties(&self) -> Option<&Blob>
pub fn user_properties(&self) -> Option<&Blob>
A base64-encoded JSON string that includes an array of JSON objects, or null if the retained message doesn't include any user properties.
The following example userProperties
parameter is a JSON string that represents two user properties. Note that it will be base64-encoded:
[{"deviceName": "alpha"}, {"deviceCnt": "45"}]
source§impl GetRetainedMessageOutput
impl GetRetainedMessageOutput
sourcepub fn builder() -> GetRetainedMessageOutputBuilder
pub fn builder() -> GetRetainedMessageOutputBuilder
Creates a new builder-style object to manufacture GetRetainedMessageOutput
.
Trait Implementations§
source§impl Clone for GetRetainedMessageOutput
impl Clone for GetRetainedMessageOutput
source§fn clone(&self) -> GetRetainedMessageOutput
fn clone(&self) -> GetRetainedMessageOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetRetainedMessageOutput
impl Debug for GetRetainedMessageOutput
source§impl PartialEq for GetRetainedMessageOutput
impl PartialEq for GetRetainedMessageOutput
source§fn eq(&self, other: &GetRetainedMessageOutput) -> bool
fn eq(&self, other: &GetRetainedMessageOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for GetRetainedMessageOutput
impl RequestId for GetRetainedMessageOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.