#[non_exhaustive]pub struct CompilationResult {
pub name: String,
pub code_compilation_config: Option<CodeCompilationConfig>,
pub resolved_git_commit_sha: String,
pub dataform_core_version: String,
pub compilation_errors: Vec<CompilationError>,
pub data_encryption_state: Option<DataEncryptionState>,
pub create_time: Option<Timestamp>,
pub internal_metadata: Option<String>,
pub source: Option<Source>,
/* private fields */
}Expand description
Represents the result of compiling a Dataform project.
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 compilation result’s name.
code_compilation_config: Option<CodeCompilationConfig>Immutable. If set, fields of code_compilation_config override the default
compilation settings that are specified in dataform.json.
resolved_git_commit_sha: StringOutput only. The fully resolved Git commit SHA of the code that was compiled. Not set for compilation results whose source is a workspace.
dataform_core_version: StringOutput only. The version of @dataform/core that was used for compilation.
compilation_errors: Vec<CompilationError>Output only. Errors encountered during project compilation.
data_encryption_state: Option<DataEncryptionState>Output only. Only set if the repository has a KMS Key.
create_time: Option<Timestamp>Output only. The timestamp of when the compilation result was created.
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.
source: Option<Source>The source of the compilation result.
Implementations§
Source§impl CompilationResult
impl CompilationResult
pub fn new() -> Self
Sourcepub fn set_code_compilation_config<T>(self, v: T) -> Selfwhere
T: Into<CodeCompilationConfig>,
pub fn set_code_compilation_config<T>(self, v: T) -> Selfwhere
T: Into<CodeCompilationConfig>,
Sets the value of code_compilation_config.
Sourcepub fn set_or_clear_code_compilation_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<CodeCompilationConfig>,
pub fn set_or_clear_code_compilation_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<CodeCompilationConfig>,
Sets or clears the value of code_compilation_config.
Sourcepub fn set_resolved_git_commit_sha<T: Into<String>>(self, v: T) -> Self
pub fn set_resolved_git_commit_sha<T: Into<String>>(self, v: T) -> Self
Sets the value of resolved_git_commit_sha.
Sourcepub fn set_dataform_core_version<T: Into<String>>(self, v: T) -> Self
pub fn set_dataform_core_version<T: Into<String>>(self, v: T) -> Self
Sets the value of dataform_core_version.
Sourcepub fn set_compilation_errors<T, V>(self, v: T) -> Self
pub fn set_compilation_errors<T, V>(self, v: T) -> Self
Sets the value of compilation_errors.
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_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
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_source<T: Into<Option<Source>>>(self, v: T) -> Self
pub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
Sets the value of source.
Note that all the setters affecting source are mutually
exclusive.
Sourcepub fn git_commitish(&self) -> Option<&String>
pub fn git_commitish(&self) -> Option<&String>
The value of source
if it holds a GitCommitish, None if the field is not set or
holds a different branch.
Sourcepub fn set_git_commitish<T: Into<String>>(self, v: T) -> Self
pub fn set_git_commitish<T: Into<String>>(self, v: T) -> Self
Sets the value of source
to hold a GitCommitish.
Note that all the setters affecting source are
mutually exclusive.
Sourcepub fn workspace(&self) -> Option<&String>
pub fn workspace(&self) -> Option<&String>
The value of source
if it holds a Workspace, None if the field is not set or
holds a different branch.
Sourcepub fn set_workspace<T: Into<String>>(self, v: T) -> Self
pub fn set_workspace<T: Into<String>>(self, v: T) -> Self
Sets the value of source
to hold a Workspace.
Note that all the setters affecting source are
mutually exclusive.
Sourcepub fn release_config(&self) -> Option<&String>
pub fn release_config(&self) -> Option<&String>
The value of source
if it holds a ReleaseConfig, None if the field is not set or
holds a different branch.
Sourcepub fn set_release_config<T: Into<String>>(self, v: T) -> Self
pub fn set_release_config<T: Into<String>>(self, v: T) -> Self
Sets the value of source
to hold a ReleaseConfig.
Note that all the setters affecting source are
mutually exclusive.
Trait Implementations§
Source§impl Clone for CompilationResult
impl Clone for CompilationResult
Source§fn clone(&self) -> CompilationResult
fn clone(&self) -> CompilationResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more