pub struct Builder { /* private fields */ }
Expand description
A builder for RetainedMessageSummary
.
Implementations
sourceimpl Builder
impl Builder
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
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more