Struct twitter_stream_message::message::Event
[−]
[src]
pub struct Event<'a> { pub created_at: DateTime, pub event: EventKind<'a>, pub target: User<'a>, pub source: User<'a>, }
Represents notifications about non-Tweet events are also sent over a stream.
Reference
Fields
created_at: DateTime
event: EventKind<'a>
An object which indicates the name of the event and contains an optional object which represents the target of the event.
target: User<'a>
source: User<'a>
Trait Implementations
impl<'a> Clone for Event<'a>
[src]
fn clone(&self) -> Event<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Debug for Event<'a>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a> PartialEq for Event<'a>
[src]
fn eq(&self, __arg_0: &Event<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Event<'a>) -> bool
[src]
This method tests for !=
.
impl<'de: 'a, 'a> Deserialize<'de> for Event<'a>
[src]
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
[src]
Deserialize this value from the given Serde deserializer. Read more