#[non_exhaustive]pub struct RetainedMessageSummaryBuilder { /* private fields */ }
Expand description
A builder for RetainedMessageSummary
.
Implementations§
source§impl RetainedMessageSummaryBuilder
impl RetainedMessageSummaryBuilder
sourcepub fn topic(self, input: impl Into<String>) -> Self
pub fn topic(self, input: impl Into<String>) -> Self
The topic name to which the retained message was published.
sourcepub fn set_topic(self, input: Option<String>) -> Self
pub fn set_topic(self, input: Option<String>) -> Self
The topic name to which the retained message was published.
sourcepub fn payload_size(self, input: i64) -> Self
pub fn payload_size(self, input: i64) -> Self
The size of the retained message's payload in bytes.
sourcepub fn set_payload_size(self, input: Option<i64>) -> Self
pub fn set_payload_size(self, input: Option<i64>) -> Self
The size of the retained message's payload in bytes.
sourcepub fn qos(self, input: i32) -> Self
pub fn qos(self, input: i32) -> Self
The quality of service (QoS) level used to publish the retained message.
sourcepub fn set_qos(self, input: Option<i32>) -> Self
pub fn set_qos(self, input: Option<i32>) -> Self
The quality of service (QoS) level used to publish the retained message.
sourcepub fn last_modified_time(self, input: i64) -> Self
pub fn last_modified_time(self, input: i64) -> Self
The Epoch date and time, in milliseconds, when the retained message was stored by IoT.
sourcepub fn set_last_modified_time(self, input: Option<i64>) -> Self
pub fn set_last_modified_time(self, input: Option<i64>) -> Self
The Epoch date and time, in milliseconds, when the retained message was stored by IoT.
sourcepub fn build(self) -> RetainedMessageSummary
pub fn build(self) -> RetainedMessageSummary
Consumes the builder and constructs a RetainedMessageSummary
.
Trait Implementations§
source§impl Clone for RetainedMessageSummaryBuilder
impl Clone for RetainedMessageSummaryBuilder
source§fn clone(&self) -> RetainedMessageSummaryBuilder
fn clone(&self) -> RetainedMessageSummaryBuilder
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 Default for RetainedMessageSummaryBuilder
impl Default for RetainedMessageSummaryBuilder
source§fn default() -> RetainedMessageSummaryBuilder
fn default() -> RetainedMessageSummaryBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<RetainedMessageSummaryBuilder> for RetainedMessageSummaryBuilder
impl PartialEq<RetainedMessageSummaryBuilder> for RetainedMessageSummaryBuilder
source§fn eq(&self, other: &RetainedMessageSummaryBuilder) -> bool
fn eq(&self, other: &RetainedMessageSummaryBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.