pub struct MessageBuilder { /* private fields */ }Expand description
Message builder for fluent construction.
Implementations§
Source§impl MessageBuilder
impl MessageBuilder
Sourcepub fn to(self, target: MessageTarget) -> Self
pub fn to(self, target: MessageTarget) -> Self
Set the target.
Sourcepub fn content(self, content: MessageContent) -> Self
pub fn content(self, content: MessageContent) -> Self
Set the content.
Sourcepub fn correlation_id(self, id: impl Into<String>) -> Self
pub fn correlation_id(self, id: impl Into<String>) -> Self
Set the correlation ID.
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