pub struct DirectMessage<'a> {
pub created_at: DateTime,
pub entities: Entities<'a>,
pub id: DirectMessageId,
pub recipient: User<'a>,
pub recipient_id: UserId,
pub recipient_screen_name: Cow<'a, str>,
pub sender: User<'a>,
pub sender_id: UserId,
pub sender_screen_name: Cow<'a, str>,
pub text: Cow<'a, str>,
}Fields§
§created_at: DateTime§entities: Entities<'a>§id: DirectMessageId§recipient: User<'a>§recipient_id: UserId§recipient_screen_name: Cow<'a, str>§sender: User<'a>§sender_id: UserId§sender_screen_name: Cow<'a, str>§text: Cow<'a, str>Trait Implementations§
Source§impl<'a> Clone for DirectMessage<'a>
impl<'a> Clone for DirectMessage<'a>
Source§fn clone(&self) -> DirectMessage<'a>
fn clone(&self) -> DirectMessage<'a>
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<'a> Debug for DirectMessage<'a>
impl<'a> Debug for DirectMessage<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for DirectMessage<'a>
impl<'de: 'a, 'a> Deserialize<'de> for DirectMessage<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> PartialEq for DirectMessage<'a>
impl<'a> PartialEq for DirectMessage<'a>
impl<'a> StructuralPartialEq for DirectMessage<'a>
Auto Trait Implementations§
impl<'a> Freeze for DirectMessage<'a>
impl<'a> RefUnwindSafe for DirectMessage<'a>
impl<'a> Send for DirectMessage<'a>
impl<'a> Sync for DirectMessage<'a>
impl<'a> Unpin for DirectMessage<'a>
impl<'a> UnwindSafe for DirectMessage<'a>
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