Skip to main content

CreateSpec

Trait CreateSpec 

Source
pub trait CreateSpec {
    const FIELDS: &'static [FieldInfo];

    // Required method
    fn inputs() -> Vec<CreateInputInfo>;

    // Provided method
    fn deserialize_inputs(data: Value) -> Result<Self, Error>
       where Self: Sized + DeserializeOwned { ... }
}
Expand description

Construction-input metadata generated from a typed create spec.

Required Associated Constants§

Source

const FIELDS: &'static [FieldInfo]

Construction-facing field metadata used by the problem catalog.

Required Methods§

Source

fn inputs() -> Vec<CreateInputInfo>

Inputs accepted by this specification, including composed decision inputs.

Provided Methods§

Source

fn deserialize_inputs(data: Value) -> Result<Self, Error>
where Self: Sized + DeserializeOwned,

Deserialize normalized construction inputs into the typed specification.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§