Skip to main content

Entity

Trait Entity 

Source
pub trait Entity:
    Sized
    + Send
    + Sync
    + 'static {
    // Required method
    fn metadata() -> &'static EntityMetadata;
}
Expand description

Stable contract implemented by persisted entities.

Required Methods§

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§