Trait atmosphere::Entity

source ·
pub trait Entity: Create + Read + Update + Delete { }
Expand description

Trait representing an Entity that maps to a database table.

Entities are table representations that implement CRUD (Create, Read, Update, Delete) operations. This trait is automatically implemented for any type that satisfies the Create, Read, Update, and Delete trait requirements, tying together the core functionalities needed for database interaction in the framework.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<E> Entity for E
where E: Create + Read + Update + Delete,