Skip to main content

Timestamped

Trait Timestamped 

Source
pub trait Timestamped: Aggregate {
    const CREATED_AT: Column<Self, Instant> = _;
    const UPDATED_AT: Column<Self, Instant> = _;

    // Provided methods
    fn created_at(&self) -> Option<Instant> { ... }
    fn updated_at(&self) -> Option<Instant> { ... }
}

Provided Associated Constants§

Source

const CREATED_AT: Column<Self, Instant> = _

Source

const UPDATED_AT: Column<Self, Instant> = _

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§