#[non_exhaustive]pub struct CompilationResultAction {
pub target: Option<Target>,
pub canonical_target: Option<Target>,
pub file_path: String,
pub internal_metadata: Option<String>,
pub compiled_object: Option<CompiledObject>,
/* private fields */
}Expand description
Represents a single Dataform action in 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.target: Option<Target>This action’s identifier. Unique within the compilation result.
canonical_target: Option<Target>The action’s identifier if the project had been compiled without any overrides configured. Unique within the compilation result.
file_path: StringThe full path including filename in which this action is located, relative to the workspace root.
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.
compiled_object: Option<CompiledObject>The compiled object.
Implementations§
Source§impl CompilationResultAction
impl CompilationResultAction
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_file_path<T: Into<String>>(self, v: T) -> Self
pub fn set_file_path<T: Into<String>>(self, v: T) -> Self
Sets the value of file_path.
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_compiled_object<T: Into<Option<CompiledObject>>>(self, v: T) -> Self
pub fn set_compiled_object<T: Into<Option<CompiledObject>>>(self, v: T) -> Self
Sets the value of compiled_object.
Note that all the setters affecting compiled_object are mutually
exclusive.
Sourcepub fn relation(&self) -> Option<&Box<Relation>>
pub fn relation(&self) -> Option<&Box<Relation>>
The value of compiled_object
if it holds a Relation, None if the field is not set or
holds a different branch.
Sourcepub fn set_relation<T: Into<Box<Relation>>>(self, v: T) -> Self
pub fn set_relation<T: Into<Box<Relation>>>(self, v: T) -> Self
Sets the value of compiled_object
to hold a Relation.
Note that all the setters affecting compiled_object are
mutually exclusive.
Sourcepub fn operations(&self) -> Option<&Box<Operations>>
pub fn operations(&self) -> Option<&Box<Operations>>
The value of compiled_object
if it holds a Operations, None if the field is not set or
holds a different branch.
Sourcepub fn set_operations<T: Into<Box<Operations>>>(self, v: T) -> Self
pub fn set_operations<T: Into<Box<Operations>>>(self, v: T) -> Self
Sets the value of compiled_object
to hold a Operations.
Note that all the setters affecting compiled_object are
mutually exclusive.
Sourcepub fn assertion(&self) -> Option<&Box<Assertion>>
pub fn assertion(&self) -> Option<&Box<Assertion>>
The value of compiled_object
if it holds a Assertion, None if the field is not set or
holds a different branch.
Sourcepub fn set_assertion<T: Into<Box<Assertion>>>(self, v: T) -> Self
pub fn set_assertion<T: Into<Box<Assertion>>>(self, v: T) -> Self
Sets the value of compiled_object
to hold a Assertion.
Note that all the setters affecting compiled_object are
mutually exclusive.
Sourcepub fn declaration(&self) -> Option<&Box<Declaration>>
pub fn declaration(&self) -> Option<&Box<Declaration>>
The value of compiled_object
if it holds a Declaration, None if the field is not set or
holds a different branch.
Sourcepub fn set_declaration<T: Into<Box<Declaration>>>(self, v: T) -> Self
pub fn set_declaration<T: Into<Box<Declaration>>>(self, v: T) -> Self
Sets the value of compiled_object
to hold a Declaration.
Note that all the setters affecting compiled_object are
mutually exclusive.
Sourcepub fn notebook(&self) -> Option<&Box<Notebook>>
pub fn notebook(&self) -> Option<&Box<Notebook>>
The value of compiled_object
if it holds a Notebook, None if the field is not set or
holds a different branch.
Sourcepub fn set_notebook<T: Into<Box<Notebook>>>(self, v: T) -> Self
pub fn set_notebook<T: Into<Box<Notebook>>>(self, v: T) -> Self
Sets the value of compiled_object
to hold a Notebook.
Note that all the setters affecting compiled_object are
mutually exclusive.
Sourcepub fn data_preparation(&self) -> Option<&Box<DataPreparation>>
pub fn data_preparation(&self) -> Option<&Box<DataPreparation>>
The value of compiled_object
if it holds a DataPreparation, None if the field is not set or
holds a different branch.
Sourcepub fn set_data_preparation<T: Into<Box<DataPreparation>>>(self, v: T) -> Self
pub fn set_data_preparation<T: Into<Box<DataPreparation>>>(self, v: T) -> Self
Sets the value of compiled_object
to hold a DataPreparation.
Note that all the setters affecting compiled_object are
mutually exclusive.
Trait Implementations§
Source§impl Clone for CompilationResultAction
impl Clone for CompilationResultAction
Source§fn clone(&self) -> CompilationResultAction
fn clone(&self) -> CompilationResultAction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more