pub struct DirectMessage {
pub content: String,
pub span: Span,
}Expand description
A message with text.
Fields§
§content: StringThe raw body of the message.
span: SpanWhere the DirectMessage occurred in its source text.
Trait Implementations§
Source§impl Clone for DirectMessage
impl Clone for DirectMessage
Source§fn clone(&self) -> DirectMessage
fn clone(&self) -> DirectMessage
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 DirectMessage
impl Debug for DirectMessage
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.
Source§impl PartialEq for DirectMessage
impl PartialEq for DirectMessage
impl StructuralPartialEq for DirectMessage
Auto Trait Implementations§
impl Freeze for DirectMessage
impl RefUnwindSafe for DirectMessage
impl Send for DirectMessage
impl Sync for DirectMessage
impl Unpin for DirectMessage
impl UnwindSafe for DirectMessage
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