#[non_exhaustive]pub struct CodeCompilationConfig {
pub default_database: String,
pub default_schema: String,
pub default_location: String,
pub assertion_schema: String,
pub vars: HashMap<String, String>,
pub database_suffix: String,
pub schema_suffix: String,
pub table_prefix: String,
pub builtin_assertion_name_prefix: String,
pub default_notebook_runtime_options: Option<NotebookRuntimeOptions>,
/* private fields */
}Expand description
Configures various aspects of Dataform code compilation.
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.default_database: StringOptional. The default database (Google Cloud project ID).
default_schema: StringOptional. The default schema (BigQuery dataset ID).
default_location: StringOptional. The default BigQuery location to use. Defaults to “US”. See the BigQuery docs for a full list of locations: https://cloud.google.com/bigquery/docs/locations.
assertion_schema: StringOptional. The default schema (BigQuery dataset ID) for assertions.
vars: HashMap<String, String>Optional. User-defined variables that are made available to project code during compilation.
database_suffix: StringOptional. The suffix that should be appended to all database (Google Cloud project ID) names.
schema_suffix: StringOptional. The suffix that should be appended to all schema (BigQuery dataset ID) names.
table_prefix: StringOptional. The prefix that should be prepended to all table names.
builtin_assertion_name_prefix: StringOptional. The prefix to prepend to built-in assertion names.
default_notebook_runtime_options: Option<NotebookRuntimeOptions>Optional. The default notebook runtime options.
Implementations§
Source§impl CodeCompilationConfig
impl CodeCompilationConfig
Sourcepub fn set_default_database<T: Into<String>>(self, v: T) -> Self
pub fn set_default_database<T: Into<String>>(self, v: T) -> Self
Sets the value of default_database.
§Example
let x = CodeCompilationConfig::new().set_default_database("example");Sourcepub fn set_default_schema<T: Into<String>>(self, v: T) -> Self
pub fn set_default_schema<T: Into<String>>(self, v: T) -> Self
Sets the value of default_schema.
§Example
let x = CodeCompilationConfig::new().set_default_schema("example");Sourcepub fn set_default_location<T: Into<String>>(self, v: T) -> Self
pub fn set_default_location<T: Into<String>>(self, v: T) -> Self
Sets the value of default_location.
§Example
let x = CodeCompilationConfig::new().set_default_location("example");Sourcepub fn set_assertion_schema<T: Into<String>>(self, v: T) -> Self
pub fn set_assertion_schema<T: Into<String>>(self, v: T) -> Self
Sets the value of assertion_schema.
§Example
let x = CodeCompilationConfig::new().set_assertion_schema("example");Sourcepub fn set_database_suffix<T: Into<String>>(self, v: T) -> Self
pub fn set_database_suffix<T: Into<String>>(self, v: T) -> Self
Sets the value of database_suffix.
§Example
let x = CodeCompilationConfig::new().set_database_suffix("example");Sourcepub fn set_schema_suffix<T: Into<String>>(self, v: T) -> Self
pub fn set_schema_suffix<T: Into<String>>(self, v: T) -> Self
Sets the value of schema_suffix.
§Example
let x = CodeCompilationConfig::new().set_schema_suffix("example");Sourcepub fn set_table_prefix<T: Into<String>>(self, v: T) -> Self
pub fn set_table_prefix<T: Into<String>>(self, v: T) -> Self
Sets the value of table_prefix.
§Example
let x = CodeCompilationConfig::new().set_table_prefix("example");Sourcepub fn set_builtin_assertion_name_prefix<T: Into<String>>(self, v: T) -> Self
pub fn set_builtin_assertion_name_prefix<T: Into<String>>(self, v: T) -> Self
Sets the value of builtin_assertion_name_prefix.
§Example
let x = CodeCompilationConfig::new().set_builtin_assertion_name_prefix("example");Sourcepub fn set_default_notebook_runtime_options<T>(self, v: T) -> Selfwhere
T: Into<NotebookRuntimeOptions>,
pub fn set_default_notebook_runtime_options<T>(self, v: T) -> Selfwhere
T: Into<NotebookRuntimeOptions>,
Sets the value of default_notebook_runtime_options.
§Example
use google_cloud_dataform_v1::model::NotebookRuntimeOptions;
let x = CodeCompilationConfig::new().set_default_notebook_runtime_options(NotebookRuntimeOptions::default()/* use setters */);Sourcepub fn set_or_clear_default_notebook_runtime_options<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<NotebookRuntimeOptions>,
pub fn set_or_clear_default_notebook_runtime_options<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<NotebookRuntimeOptions>,
Sets or clears the value of default_notebook_runtime_options.
§Example
use google_cloud_dataform_v1::model::NotebookRuntimeOptions;
let x = CodeCompilationConfig::new().set_or_clear_default_notebook_runtime_options(Some(NotebookRuntimeOptions::default()/* use setters */));
let x = CodeCompilationConfig::new().set_or_clear_default_notebook_runtime_options(None::<NotebookRuntimeOptions>);Trait Implementations§
Source§impl Clone for CodeCompilationConfig
impl Clone for CodeCompilationConfig
Source§fn clone(&self) -> CodeCompilationConfig
fn clone(&self) -> CodeCompilationConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CodeCompilationConfig
impl Debug for CodeCompilationConfig
Source§impl Default for CodeCompilationConfig
impl Default for CodeCompilationConfig
Source§fn default() -> CodeCompilationConfig
fn default() -> CodeCompilationConfig
Source§impl Message for CodeCompilationConfig
impl Message for CodeCompilationConfig
Source§impl PartialEq for CodeCompilationConfig
impl PartialEq for CodeCompilationConfig
impl StructuralPartialEq for CodeCompilationConfig
Auto Trait Implementations§
impl Freeze for CodeCompilationConfig
impl RefUnwindSafe for CodeCompilationConfig
impl Send for CodeCompilationConfig
impl Sync for CodeCompilationConfig
impl Unpin for CodeCompilationConfig
impl UnsafeUnpin for CodeCompilationConfig
impl UnwindSafe for CodeCompilationConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request