Struct azure_iot_sdk::message::MessageBuilder [−][src]
pub struct MessageBuilder { /* fields omitted */ }
Builder for constructing Message instances
Implementations
impl MessageBuilder
[src]
impl MessageBuilder
[src]pub fn set_message_id(self, message_id: String) -> Self
[src]
pub fn set_message_id(self, message_id: String) -> Self
[src]Set the identifier for this message
pub fn set_content_type(self, content_type: String) -> Self
[src]
pub fn set_content_type(self, content_type: String) -> Self
[src]Set the content-type for this message, such as text/plain
.
To allow routing query on the message body, this value should be set to application/json
pub fn set_content_encoding(self, content_encoding: String) -> Self
[src]
pub fn set_content_encoding(self, content_encoding: String) -> Self
[src]Set the content-encoding for this message.
If the content-type is set to application/json
, allowed values are UTF-8
, UTF-16
, UTF-32
.
pub fn add_message_property(self, key: String, value: String) -> Self
[src]
pub fn add_message_property(self, key: String, value: String) -> Self
[src]Add a message property
Trait Implementations
impl Debug for MessageBuilder
[src]
impl Debug for MessageBuilder
[src]impl Default for MessageBuilder
[src]
impl Default for MessageBuilder
[src]fn default() -> MessageBuilder
[src]
fn default() -> MessageBuilder
[src]Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for MessageBuilder
impl Send for MessageBuilder
impl Sync for MessageBuilder
impl Unpin for MessageBuilder
impl UnwindSafe for MessageBuilder
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self