Skip to main content

SoftDeletes

Trait SoftDeletes 

Source
pub trait SoftDeletes: Aggregate {
    const DELETED_AT: Column<Self, Option<Instant>> = _;

    // Provided methods
    fn delete(&mut self) { ... }
    fn restore(&mut self) { ... }
    fn is_deleted(&self) -> bool { ... }
    fn deleted_at(&self) -> Option<Instant> { ... }
}

Provided Associated Constants§

Provided Methods§

Source

fn delete(&mut self)

Source

fn restore(&mut self)

Source

fn is_deleted(&self) -> bool

Source

fn deleted_at(&self) -> Option<Instant>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§