pub struct MessageBuilder { /* private fields */ }Expand description
Builder for constructing Message instances
Implementations§
Source§impl MessageBuilder
impl MessageBuilder
Sourcepub fn parts(self, parts: Vec<MessagePart>) -> Self
pub fn parts(self, parts: Vec<MessagePart>) -> Self
Set the message parts
Sourcepub fn part(self, part: MessagePart) -> Self
pub fn part(self, part: MessagePart) -> Self
Add a single part to the message
Sourcepub fn message_id(self, id: impl Into<String>) -> Self
pub fn message_id(self, id: impl Into<String>) -> Self
Set the message ID
Sourcepub fn context_id(self, id: impl Into<String>) -> Self
pub fn context_id(self, id: impl Into<String>) -> Self
Set the context ID
Trait Implementations§
Source§impl Debug for MessageBuilder
impl Debug for MessageBuilder
Source§impl Default for MessageBuilder
impl Default for MessageBuilder
Source§fn default() -> MessageBuilder
fn default() -> MessageBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MessageBuilder
impl RefUnwindSafe for MessageBuilder
impl Send for MessageBuilder
impl Sync for MessageBuilder
impl Unpin for MessageBuilder
impl UnwindSafe for MessageBuilder
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
Mutably borrows from an owned value. Read more