pub trait TeaqlEntity {
const ENTITY_NAME: &'static str;
// Required method
fn entity_descriptor() -> EntityDescriptor;
// Provided methods
fn field_layout() -> Result<Option<Arc<FieldLayout>>, EntityError> { ... }
fn register_into(store: &mut impl EntityDescriptorStore) { ... }
}Required Associated Constants§
const ENTITY_NAME: &'static str
Required Methods§
Provided Methods§
Sourcefn field_layout() -> Result<Option<Arc<FieldLayout>>, EntityError>
fn field_layout() -> Result<Option<Arc<FieldLayout>>, EntityError>
Fixed metadata supplied by generation; hand-written adapters may remain unindexed.
fn register_into(store: &mut impl EntityDescriptorStore)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".