pub struct Builder { /* private fields */ }
Expand description
A builder for RetainedMessageSummary
.
Implementations§
source§impl 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
.