pub struct StepOverride {
pub override_type: OverrideType,
pub value: Value,
}Expand description
Override specification for a single step.
Contains the override type (merge patch, json patch, etc.) and the value
to apply. The type field uses $type to avoid collisions with step properties.
Fields§
§override_type: OverrideTypeThe type of override to apply. Defaults to “merge_patch” if not specified.
value: ValueThe override value to apply, interpreted based on the override type.
Implementations§
Source§impl StepOverride
impl StepOverride
Sourcepub fn merge_patch(value: Value) -> Self
pub fn merge_patch(value: Value) -> Self
Create a new step override with merge patch type
Sourcepub fn with_type(override_type: OverrideType, value: Value) -> Self
pub fn with_type(override_type: OverrideType, value: Value) -> Self
Create a new step override with explicit type
Trait Implementations§
Source§impl Clone for StepOverride
impl Clone for StepOverride
Source§fn clone(&self) -> StepOverride
fn clone(&self) -> StepOverride
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StepOverride
impl Debug for StepOverride
Source§impl<'de> Deserialize<'de> for StepOverride
impl<'de> Deserialize<'de> for StepOverride
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for StepOverride
impl JsonSchema for StepOverride
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for StepOverride
impl PartialEq for StepOverride
Source§impl Serialize for StepOverride
impl Serialize for StepOverride
impl StructuralPartialEq for StepOverride
Auto Trait Implementations§
impl Freeze for StepOverride
impl RefUnwindSafe for StepOverride
impl Send for StepOverride
impl Sync for StepOverride
impl Unpin for StepOverride
impl UnsafeUnpin for StepOverride
impl UnwindSafe for StepOverride
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