pub struct OutgoingMessage {
pub content: Option<String>,
pub embeds: Vec<Embed>,
pub reply_to: Option<Id<MessageMarker>>,
pub allowed_mentions: AllowedMentions,
}Expand description
A message to post, independent of the HTTP request that sends it.
Fields§
§content: Option<String>The message content.
embeds: Vec<Embed>The embeds attached to the message.
reply_to: Option<Id<MessageMarker>>The message this one replies to.
allowed_mentions: AllowedMentionsWho the message may mention.
Trait Implementations§
Auto Trait Implementations§
impl Forget for OutgoingMessage
impl Freeze for OutgoingMessage
impl Move for OutgoingMessage
impl RefUnwindSafe for OutgoingMessage
impl Send for OutgoingMessage
impl Sync for OutgoingMessage
impl Unpin for OutgoingMessage
impl UnsafeUnpin for OutgoingMessage
impl UnwindSafe for OutgoingMessage
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