pub enum Body {
DirectMessage(DirectMessage),
Attachment(Attachment),
}Expand description
A Message’s contents.
Variants§
Trait Implementations§
Source§impl From<Attachment> for Body
impl From<Attachment> for Body
Source§fn from(other: Attachment) -> Body
fn from(other: Attachment) -> Body
Converts to this type from the input type.
Source§impl From<DirectMessage> for Body
impl From<DirectMessage> for Body
Source§fn from(other: DirectMessage) -> Body
fn from(other: DirectMessage) -> Body
Converts to this type from the input type.
impl StructuralPartialEq for Body
Auto Trait Implementations§
impl Freeze for Body
impl RefUnwindSafe for Body
impl Send for Body
impl Sync for Body
impl Unpin for Body
impl UnwindSafe for Body
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