pub enum Reference {
Output {
task: TaskId,
path: Vec<PathElem>,
on: Vec<String>,
},
Outcome {
task: TaskId,
},
DagCtx {
field: DagCtxField,
},
Param {
path: Vec<PathElem>,
},
Secret(SecretName),
}Expand description
A reference to data known only at run time.
Variants§
Output
An upstream task’s output, or a part of it.
Fields
Outcome
An upstream task’s outcome itself (.outcome), as its name.
DagCtx
A field of the run’s context.
Fields
§
field: DagCtxFieldWhich field.
Param
The run’s parameters, or a part of them (dag_ctx.params.region, decision 138).
Secret(SecretName)
A secret from a secret storage (secrets['etl/db']['password']), fetched by the agent
that runs the task, never by the master (see archive/PROJECT.md, Secret storage).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Reference
impl<'de> Deserialize<'de> for Reference
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 Eq for Reference
Source§impl JsonSchema for Reference
impl JsonSchema for Reference
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 moreimpl StructuralPartialEq for Reference
Auto Trait Implementations§
impl Freeze for Reference
impl RefUnwindSafe for Reference
impl Send for Reference
impl Sync for Reference
impl Unpin for Reference
impl UnsafeUnpin for Reference
impl UnwindSafe for Reference
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