pub struct CreateMessage { /* private fields */ }Expand description
Builder for create a message.
Implementations§
Source§impl CreateMessage
impl CreateMessage
Sourcepub fn attachment(self, id: &Id) -> Self
pub fn attachment(self, id: &Id) -> Self
Set a attachment to include in the message.
Sourcepub fn embed(self, build: impl Fn(CreateEmbed) -> CreateEmbed) -> Self
pub fn embed(self, build: impl Fn(CreateEmbed) -> CreateEmbed) -> Self
Set a embed to include in the message.
Sourcepub fn masquerade(self, masquerade: Masquerade) -> Self
pub fn masquerade(self, masquerade: Masquerade) -> Self
Set the masquerade.
Trait Implementations§
Source§impl Clone for CreateMessage
impl Clone for CreateMessage
Source§fn clone(&self) -> CreateMessage
fn clone(&self) -> CreateMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateMessage
impl Debug for CreateMessage
Auto Trait Implementations§
impl Freeze for CreateMessage
impl RefUnwindSafe for CreateMessage
impl Send for CreateMessage
impl Sync for CreateMessage
impl Unpin for CreateMessage
impl UnwindSafe for CreateMessage
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