pub trait BaseAuditableEntity: BaseEntity {
type User: Send + Sync + Clone;
// Required methods
fn created_by(&self) -> &Self::User;
fn updated_by(&self) -> &Self::User;
}Expand description
Auditing view over a model that tracks creator and updater.
Requires BaseEntity and exposes both users as User values.
Required Associated Types§
Required Methods§
Sourcefn created_by(&self) -> &Self::User
fn created_by(&self) -> &Self::User
Returns the user that created the row.
Sourcefn updated_by(&self) -> &Self::User
fn updated_by(&self) -> &Self::User
Returns the user that last updated the row.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".