Skip to main content

EntityCreateInput

Trait EntityCreateInput 

Source
pub trait EntityCreateInput: Sized {
    type Entity: EntityValue + Default;

    // Required method
    fn materialize_create(self) -> EntityCreateMaterialization<Self::Entity>;
}
Expand description

EntityCreateInput

Create-authored typed input for one entity. This is intentionally distinct from the readable entity shape so generated and managed fields can stay structurally un-authorable on typed creates.

Required Associated Types§

Required Methods§

Source

fn materialize_create(self) -> EntityCreateMaterialization<Self::Entity>

Materialize one typed create payload plus authored-slot provenance.

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§