Skip to main content

EntityValue

Trait EntityValue 

Source
pub trait EntityValue: EntityIdentity + FieldValues {
    // Required methods
    fn id(&self) -> Self::Id;
    fn set_id(&mut self, id: Self::Id);
}
Expand description

A concrete entity value.

This trait is intentionally lighter than EntityKind. It does NOT imply storage placement.

Required Methods§

Source

fn id(&self) -> Self::Id

Source

fn set_id(&mut self, id: Self::Id)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§