[][src]Trait kv_crud_core::Entity

pub trait Entity<IdType>: Clone + Debug {
    fn get_id(&self) -> IdType;
}

Represents an entity that can be stored in the system. You have to implement this trait for your custom type to be able to store it. Keep in mind that different implementations may require additional type constraints.

Required methods

fn get_id(&self) -> IdType

Loading content...

Implementors

Loading content...