pub trait AuthTimestamp: Sized {
type UtcValue;
// Required methods
fn from_utc(value: Self::UtcValue) -> Self;
fn into_utc(self) -> Self::UtcValue;
}Expand description
Conversion between an application timestamp field and the auth UTC clock.
NaiveDateTime fields represent UTC wall-clock values, never local time.
The optional implementation preserves typed absence in model mutations.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".