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§
Required Methods§
Sourcefn inputs() -> Vec<CreateInputInfo>
fn inputs() -> Vec<CreateInputInfo>
Inputs accepted by this specification, including composed decision inputs.
Provided Methods§
Sourcefn deserialize_inputs(data: Value) -> Result<Self, Error>where
Self: Sized + DeserializeOwned,
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".