#[non_exhaustive]pub struct GetRetainedMessageOutput { /* private fields */ }
Expand description
The output from the GetRetainedMessage operation.
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
Returns a copy 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 GetRetainedMessageOutput
impl Debug for GetRetainedMessageOutput
source§impl PartialEq<GetRetainedMessageOutput> for GetRetainedMessageOutput
impl PartialEq<GetRetainedMessageOutput> for GetRetainedMessageOutput
source§fn eq(&self, other: &GetRetainedMessageOutput) -> bool
fn eq(&self, other: &GetRetainedMessageOutput) -> bool
This method tests for
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>
Returns the request ID, or
None
if the service could not be reached.impl StructuralPartialEq for GetRetainedMessageOutput
Auto Trait Implementations§
impl RefUnwindSafe for GetRetainedMessageOutput
impl Send for GetRetainedMessageOutput
impl Sync for GetRetainedMessageOutput
impl Unpin for GetRetainedMessageOutput
impl UnwindSafe for GetRetainedMessageOutput
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