#[non_exhaustive]pub struct WorkflowInvocation {
pub name: String,
pub invocation_config: Option<InvocationConfig>,
pub state: State,
pub invocation_timing: Option<Interval>,
pub resolved_compilation_result: String,
pub data_encryption_state: Option<DataEncryptionState>,
pub internal_metadata: Option<String>,
pub compilation_source: Option<CompilationSource>,
/* private fields */
}Expand description
Represents a single invocation of a compilation result.
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.name: StringOutput only. The workflow invocation’s name.
invocation_config: Option<InvocationConfig>Immutable. If left unset, a default InvocationConfig will be used.
state: StateOutput only. This workflow invocation’s current state.
invocation_timing: Option<Interval>Output only. This workflow invocation’s timing details.
resolved_compilation_result: StringOutput only. The resolved compilation result that was used to create this
invocation. Will be in the format
projects/*/locations/*/repositories/*/compilationResults/*.
data_encryption_state: Option<DataEncryptionState>Output only. Only set if the repository has a KMS Key.
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.
compilation_source: Option<CompilationSource>The source of the compilation result to use for this invocation.
Implementations§
Source§impl WorkflowInvocation
impl WorkflowInvocation
pub fn new() -> Self
Sourcepub fn set_invocation_config<T>(self, v: T) -> Selfwhere
T: Into<InvocationConfig>,
pub fn set_invocation_config<T>(self, v: T) -> Selfwhere
T: Into<InvocationConfig>,
Sets the value of invocation_config.
Sourcepub fn set_or_clear_invocation_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<InvocationConfig>,
pub fn set_or_clear_invocation_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<InvocationConfig>,
Sets or clears the value of invocation_config.
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_resolved_compilation_result<T: Into<String>>(self, v: T) -> Self
pub fn set_resolved_compilation_result<T: Into<String>>(self, v: T) -> Self
Sets the value of resolved_compilation_result.
Sourcepub fn set_data_encryption_state<T>(self, v: T) -> Selfwhere
T: Into<DataEncryptionState>,
pub fn set_data_encryption_state<T>(self, v: T) -> Selfwhere
T: Into<DataEncryptionState>,
Sets the value of data_encryption_state.
Sourcepub fn set_or_clear_data_encryption_state<T>(self, v: Option<T>) -> Selfwhere
T: Into<DataEncryptionState>,
pub fn set_or_clear_data_encryption_state<T>(self, v: Option<T>) -> Selfwhere
T: Into<DataEncryptionState>,
Sets or clears the value of data_encryption_state.
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_compilation_source<T: Into<Option<CompilationSource>>>(
self,
v: T,
) -> Self
pub fn set_compilation_source<T: Into<Option<CompilationSource>>>( self, v: T, ) -> Self
Sets the value of compilation_source.
Note that all the setters affecting compilation_source are mutually
exclusive.
Sourcepub fn compilation_result(&self) -> Option<&String>
pub fn compilation_result(&self) -> Option<&String>
The value of compilation_source
if it holds a CompilationResult, None if the field is not set or
holds a different branch.
Sourcepub fn set_compilation_result<T: Into<String>>(self, v: T) -> Self
pub fn set_compilation_result<T: Into<String>>(self, v: T) -> Self
Sets the value of compilation_source
to hold a CompilationResult.
Note that all the setters affecting compilation_source are
mutually exclusive.
Sourcepub fn workflow_config(&self) -> Option<&String>
pub fn workflow_config(&self) -> Option<&String>
The value of compilation_source
if it holds a WorkflowConfig, None if the field is not set or
holds a different branch.
Sourcepub fn set_workflow_config<T: Into<String>>(self, v: T) -> Self
pub fn set_workflow_config<T: Into<String>>(self, v: T) -> Self
Sets the value of compilation_source
to hold a WorkflowConfig.
Note that all the setters affecting compilation_source are
mutually exclusive.
Trait Implementations§
Source§impl Clone for WorkflowInvocation
impl Clone for WorkflowInvocation
Source§fn clone(&self) -> WorkflowInvocation
fn clone(&self) -> WorkflowInvocation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more