#[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 get_topic(&self) -> &Option<String>
pub fn get_topic(&self) -> &Option<String>
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 get_payload_size(&self) -> &Option<i64>
pub fn get_payload_size(&self) -> &Option<i64>
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 get_qos(&self) -> &Option<i32>
pub fn get_qos(&self) -> &Option<i32>
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 get_last_modified_time(&self) -> &Option<i64>
pub fn get_last_modified_time(&self) -> &Option<i64>
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for RetainedMessageSummaryBuilder
impl Default for RetainedMessageSummaryBuilder
source§fn default() -> RetainedMessageSummaryBuilder
fn default() -> RetainedMessageSummaryBuilder
source§impl PartialEq for RetainedMessageSummaryBuilder
impl PartialEq for RetainedMessageSummaryBuilder
source§fn eq(&self, other: &RetainedMessageSummaryBuilder) -> bool
fn eq(&self, other: &RetainedMessageSummaryBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RetainedMessageSummaryBuilder
Auto Trait Implementations§
impl Freeze for RetainedMessageSummaryBuilder
impl RefUnwindSafe for RetainedMessageSummaryBuilder
impl Send for RetainedMessageSummaryBuilder
impl Sync for RetainedMessageSummaryBuilder
impl Unpin for RetainedMessageSummaryBuilder
impl UnwindSafe for RetainedMessageSummaryBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more