pub struct Event<'a> {
pub created_at: DateTime,
pub event: EventKind<'a>,
pub target: User<'a>,
pub source: User<'a>,
}Expand description
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§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Event<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Event<'a>
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl<'a> StructuralPartialEq for Event<'a>
Auto Trait Implementations§
impl<'a> Freeze for Event<'a>
impl<'a> RefUnwindSafe for Event<'a>
impl<'a> Send for Event<'a>
impl<'a> Sync for Event<'a>
impl<'a> Unpin for Event<'a>
impl<'a> UnwindSafe for Event<'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