pub struct MessagingMessageBuilder<C> { /* private fields */ }Expand description
Builder for the build_message method.
Implementations§
Source§impl<C> MessagingMessageBuilder<C>
impl<C> MessagingMessageBuilder<C>
Sourcepub fn as_request(&self) -> &Request
pub fn as_request(&self) -> &Request
Gets the request object for reuse.
Sourcepub fn text(&mut self, text: impl Into<String>) -> &mut Self
pub fn text(&mut self, text: impl Into<String>) -> &mut Self
Sets the text content of the message.
Sourcepub fn user(&mut self, user: impl EntityRef<User>) -> &mut Self
pub fn user(&mut self, user: impl EntityRef<User>) -> &mut Self
Specifies the recipient user.
Note that user and group cannot be specified as the recipient at the same time.
Therefore, even if group is used before this method call,
it will be overwritten and the message is only sent to the user specified in this call.
Sourcepub fn group(&mut self, group: impl EntityRef<UserGroup>) -> &mut Self
pub fn group(&mut self, group: impl EntityRef<UserGroup>) -> &mut Self
Specifies the recipient user group.
Note that user and group cannot be specified as the recipient at the same time.
Therefore, even if user is used before this method call,
it will be overwritten and the message is only sent to the user group specified in this call.
Source§impl<C: Client> MessagingMessageBuilder<C>
impl<C: Client> MessagingMessageBuilder<C>
Auto Trait Implementations§
impl<C> Freeze for MessagingMessageBuilder<C>where
C: Freeze,
impl<C> RefUnwindSafe for MessagingMessageBuilder<C>where
C: RefUnwindSafe,
impl<C> Send for MessagingMessageBuilder<C>where
C: Send,
impl<C> Sync for MessagingMessageBuilder<C>where
C: Sync,
impl<C> Unpin for MessagingMessageBuilder<C>where
C: Unpin,
impl<C> UnwindSafe for MessagingMessageBuilder<C>where
C: UnwindSafe,
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