pub struct GenericSpec(/* private fields */);Expand description
A fully generic step specification where all metadata is
serde_json::Value and errors are SerializableError.
Use this if you don’t care about assigning types to any of the metadata components. This is the lowest-common-denominator type for cross-engine communication.
Trait Implementations§
Source§impl EngineSpec for GenericSpec
impl EngineSpec for GenericSpec
Source§type StepMetadata = Value
type StepMetadata = Value
Metadata associated with each step. Read more
Source§type ProgressMetadata = Value
type ProgressMetadata = Value
Metadata associated with an individual progress event. Read more
Source§type CompletionMetadata = Value
type CompletionMetadata = Value
Metadata associated with each step’s completion. Read more
Source§type SkippedMetadata = Value
type SkippedMetadata = Value
Metadata associated with a step being skipped. Read more
Source§type Error = SerializableError
type Error = SerializableError
The error type associated with each step. Read more
Source§fn spec_name() -> String
fn spec_name() -> String
The name of this specification, used to identify it in
serialized events.
Source§fn rust_type_info() -> Option<RustTypeInfo>
fn rust_type_info() -> Option<RustTypeInfo>
Information for the
x-rust-type JSON Schema extension. Read moreSource§impl JsonSchema for GenericSpec
Available on crate feature schemars08 only.
impl JsonSchema for GenericSpec
Available on crate feature
schemars08 only.Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn json_schema(_: &mut SchemaGenerator) -> Schema
fn json_schema(_: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for GenericSpec
impl RefUnwindSafe for GenericSpec
impl Send for GenericSpec
impl Sync for GenericSpec
impl Unpin for GenericSpec
impl UnsafeUnpin for GenericSpec
impl UnwindSafe for GenericSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more