pub struct Stage {
pub args: Option<Vec<Value>>,
pub name: Option<String>,
pub options: Option<HashMap<String, Value>>,
}Expand description
A single operation within a pipeline. A stage is made up of a unique name, and a list of arguments. The exact number of arguments & types is dependent on the stage type. To give an example, the stage filter(state = "MD") would be encoded as: name: "filter" args { function_value { name: "eq" args { field_reference_value: "state" } args { string_value: "MD" } } } See public documentation for the full list.
This type is not used in any activity, and only used as part of another schema.
Fields§
§args: Option<Vec<Value>>Optional. Ordered list of arguments the given stage expects.
name: Option<String>Required. The name of the stage to evaluate. Requires: * must be in snake case (lower case with underscore separator).
options: Option<HashMap<String, Value>>Optional. Optional named arguments that certain functions may support.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Stage
impl<'de> Deserialize<'de> for Stage
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
impl Part for Stage
Auto Trait Implementations§
impl Freeze for Stage
impl RefUnwindSafe for Stage
impl Send for Stage
impl Sync for Stage
impl Unpin for Stage
impl UnwindSafe for Stage
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