#[non_exhaustive]pub struct WorkflowInvocationAction {
pub target: Option<Target>,
pub canonical_target: Option<Target>,
pub state: State,
pub failure_reason: String,
pub invocation_timing: Option<Interval>,
pub internal_metadata: Option<String>,
pub action: Option<Action>,
/* private fields */
}Expand description
Represents a single action in a workflow invocation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.target: Option<Target>Output only. This action’s identifier. Unique within the workflow invocation.
canonical_target: Option<Target>Output only. The action’s identifier if the project had been compiled without any overrides configured. Unique within the compilation result.
state: StateOutput only. This action’s current state.
failure_reason: StringOutput only. If and only if action’s state is FAILED a failure reason is set.
invocation_timing: Option<Interval>Output only. This action’s timing details.
start_time will be set if the action is in [RUNNING, SUCCEEDED,
CANCELLED, FAILED] state.
end_time will be set if the action is in [SUCCEEDED, CANCELLED, FAILED]
state.
internal_metadata: Option<String>Output only. All the metadata information that is used internally to serve the resource. For example: timestamps, flags, status fields, etc. The format of this field is a JSON string.
action: Option<Action>The action’s details.
Implementations§
Source§impl WorkflowInvocationAction
impl WorkflowInvocationAction
pub fn new() -> Self
Sourcepub fn set_target<T>(self, v: T) -> Self
pub fn set_target<T>(self, v: T) -> Self
Sets the value of target.
Sourcepub fn set_or_clear_target<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_target<T>(self, v: Option<T>) -> Self
Sets or clears the value of target.
Sourcepub fn set_canonical_target<T>(self, v: T) -> Self
pub fn set_canonical_target<T>(self, v: T) -> Self
Sets the value of canonical_target.
Sourcepub fn set_or_clear_canonical_target<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_canonical_target<T>(self, v: Option<T>) -> Self
Sets or clears the value of canonical_target.
Sourcepub fn set_failure_reason<T: Into<String>>(self, v: T) -> Self
pub fn set_failure_reason<T: Into<String>>(self, v: T) -> Self
Sets the value of failure_reason.
Sourcepub fn set_invocation_timing<T>(self, v: T) -> Self
pub fn set_invocation_timing<T>(self, v: T) -> Self
Sets the value of invocation_timing.
Sourcepub fn set_or_clear_invocation_timing<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_invocation_timing<T>(self, v: Option<T>) -> Self
Sets or clears the value of invocation_timing.
Sourcepub fn set_internal_metadata<T>(self, v: T) -> Self
pub fn set_internal_metadata<T>(self, v: T) -> Self
Sets the value of internal_metadata.
Sourcepub fn set_or_clear_internal_metadata<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_internal_metadata<T>(self, v: Option<T>) -> Self
Sets or clears the value of internal_metadata.
Sourcepub fn set_action<T: Into<Option<Action>>>(self, v: T) -> Self
pub fn set_action<T: Into<Option<Action>>>(self, v: T) -> Self
Sets the value of action.
Note that all the setters affecting action are mutually
exclusive.
Sourcepub fn bigquery_action(&self) -> Option<&Box<BigQueryAction>>
pub fn bigquery_action(&self) -> Option<&Box<BigQueryAction>>
The value of action
if it holds a BigqueryAction, None if the field is not set or
holds a different branch.
Sourcepub fn set_bigquery_action<T: Into<Box<BigQueryAction>>>(self, v: T) -> Self
pub fn set_bigquery_action<T: Into<Box<BigQueryAction>>>(self, v: T) -> Self
Sets the value of action
to hold a BigqueryAction.
Note that all the setters affecting action are
mutually exclusive.
Sourcepub fn notebook_action(&self) -> Option<&Box<NotebookAction>>
pub fn notebook_action(&self) -> Option<&Box<NotebookAction>>
The value of action
if it holds a NotebookAction, None if the field is not set or
holds a different branch.
Sourcepub fn set_notebook_action<T: Into<Box<NotebookAction>>>(self, v: T) -> Self
pub fn set_notebook_action<T: Into<Box<NotebookAction>>>(self, v: T) -> Self
Sets the value of action
to hold a NotebookAction.
Note that all the setters affecting action are
mutually exclusive.
Sourcepub fn data_preparation_action(&self) -> Option<&Box<DataPreparationAction>>
pub fn data_preparation_action(&self) -> Option<&Box<DataPreparationAction>>
The value of action
if it holds a DataPreparationAction, None if the field is not set or
holds a different branch.
Sourcepub fn set_data_preparation_action<T: Into<Box<DataPreparationAction>>>(
self,
v: T,
) -> Self
pub fn set_data_preparation_action<T: Into<Box<DataPreparationAction>>>( self, v: T, ) -> Self
Sets the value of action
to hold a DataPreparationAction.
Note that all the setters affecting action are
mutually exclusive.
Trait Implementations§
Source§impl Clone for WorkflowInvocationAction
impl Clone for WorkflowInvocationAction
Source§fn clone(&self) -> WorkflowInvocationAction
fn clone(&self) -> WorkflowInvocationAction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more