pub trait MemoryUser: AuthUser {
// Required methods
fn from_create(id: String, create: &CreateUser, now: DateTime<Utc>) -> Self;
fn apply_update(&mut self, update: &UpdateUser);
}Expand description
Construction and mutation for user entities stored in memory.
Required Methods§
Sourcefn from_create(id: String, create: &CreateUser, now: DateTime<Utc>) -> Self
fn from_create(id: String, create: &CreateUser, now: DateTime<Utc>) -> Self
Construct a new user from creation data.
Sourcefn apply_update(&mut self, update: &UpdateUser)
fn apply_update(&mut self, update: &UpdateUser)
Apply an update in place.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.