pub struct SingleEvent {
pub event: EventType,
pub apps: HashMap<String, TweetSource>,
}Expand description
Single direct message event.
Fields§
§event: EventTypeInformation about the event.
apps: HashMap<String, TweetSource>Mapping of source app ID to information about the app, if this message was sent by the authenticated user.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SingleEvent
impl<'de> Deserialize<'de> for SingleEvent
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 From<SingleEvent> for DirectMessage
impl From<SingleEvent> for DirectMessage
Source§fn from(ev: SingleEvent) -> DirectMessage
fn from(ev: SingleEvent) -> DirectMessage
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SingleEvent
impl RefUnwindSafe for SingleEvent
impl Send for SingleEvent
impl Sync for SingleEvent
impl Unpin for SingleEvent
impl UnwindSafe for SingleEvent
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