Skip to main content

EntityCreateInput

Trait EntityCreateInput 

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

    // Required method
    fn into_authored_fields(self) -> Vec<EntityCreateFieldInput>;
}
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§

Source

type Entity: EntityValue

Entity materialized by this input.

Required Methods§

Source

fn into_authored_fields(self) -> Vec<EntityCreateFieldInput>

Lower this DTO to exact authored field inputs without resolving omissions.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§