pub struct UserDeleteEvent {
pub user: Option<Box<User>>,
pub create_instant: Option<i64>,
pub id: Option<Uuid>,
pub info: Option<Box<EventInfo>>,
pub tenant_id: Option<Uuid>,
pub type: Option<EventType>,
}
Expand description
UserDeleteEvent : Models the User Event (and can be converted to JSON) that is used for all user modifications (create, update, delete).
Fields§
§user: Option<Box<User>>
§create_instant: Option<i64>
The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
id: Option<Uuid>
§info: Option<Box<EventInfo>>
§tenant_id: Option<Uuid>
§type: Option<EventType>
Implementations§
source§impl UserDeleteEvent
impl UserDeleteEvent
sourcepub fn new() -> UserDeleteEvent
pub fn new() -> UserDeleteEvent
Models the User Event (and can be converted to JSON) that is used for all user modifications (create, update, delete).
Trait Implementations§
source§impl Clone for UserDeleteEvent
impl Clone for UserDeleteEvent
source§fn clone(&self) -> UserDeleteEvent
fn clone(&self) -> UserDeleteEvent
Returns a copy 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 Debug for UserDeleteEvent
impl Debug for UserDeleteEvent
source§impl Default for UserDeleteEvent
impl Default for UserDeleteEvent
source§fn default() -> UserDeleteEvent
fn default() -> UserDeleteEvent
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for UserDeleteEvent
impl<'de> Deserialize<'de> for UserDeleteEvent
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 PartialEq for UserDeleteEvent
impl PartialEq for UserDeleteEvent
source§fn eq(&self, other: &UserDeleteEvent) -> bool
fn eq(&self, other: &UserDeleteEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for UserDeleteEvent
impl Serialize for UserDeleteEvent
impl StructuralPartialEq for UserDeleteEvent
Auto Trait Implementations§
impl RefUnwindSafe for UserDeleteEvent
impl Send for UserDeleteEvent
impl Sync for UserDeleteEvent
impl Unpin for UserDeleteEvent
impl UnwindSafe for UserDeleteEvent
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