pub trait EntityCreateInput: Sized {
type Entity: EntityValue;
// Required method
fn materialize_create(
self,
) -> Result<EntityCreateMaterialization<Self::Entity>, InternalError>;
}Expand description
Create-authored typed input for one entity.
This is intentionally distinct from the readable entity shape so generated and managed fields remain structurally un-authorable on typed creates.
Required Associated Types§
Sourcetype Entity: EntityValue
type Entity: EntityValue
Entity materialized by this input.
Required Methods§
Sourcefn materialize_create(
self,
) -> Result<EntityCreateMaterialization<Self::Entity>, InternalError>
fn materialize_create( self, ) -> Result<EntityCreateMaterialization<Self::Entity>, InternalError>
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".