Skip to main content

SoftDeleteEntity

Trait SoftDeleteEntity 

Source
pub trait SoftDeleteEntity: Entity {
    // Required method
    fn soft_delete_policy() -> Option<EntityPolicyMetadata>;
}
Expand description

Runtime metadata hook for entities that declare #[orm(soft_delete = SoftDelete)].

The public delete/read behavior lives in the sql-orm crate. Lower layers still see ordinary columns and ordinary query/update AST nodes.

Required Methods§

Source

fn soft_delete_policy() -> Option<EntityPolicyMetadata>

Returns soft-delete-owned columns for this entity when enabled.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§