pub struct ChatEvent {
pub id: i64,
pub date: i32,
pub user_id: i32,
pub action: ChatEventAction,
}
Expand description
Represents a chat event
Fields§
§id: i64
Chat event identifier
date: i32
Point in time (Unix timestamp) when the event happened
user_id: i32
Identifier of the user who performed the action that triggered the event
action: ChatEventAction
Action performed by the user
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChatEvent
impl<'de> Deserialize<'de> for ChatEvent
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
Auto Trait Implementations§
impl Freeze for ChatEvent
impl RefUnwindSafe for ChatEvent
impl Send for ChatEvent
impl Sync for ChatEvent
impl Unpin for ChatEvent
impl UnwindSafe for ChatEvent
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