#[non_exhaustive]pub struct RuntimeConfig {
pub version: String,
pub container_image: String,
pub properties: HashMap<String, String>,
pub repository_config: Option<RepositoryConfig>,
pub autotuning_config: Option<AutotuningConfig>,
pub cohort: String,
/* private fields */
}Expand description
Runtime configuration for a workload.
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.version: StringOptional. Version of the batch runtime.
container_image: StringOptional. Optional custom container image for the job runtime environment. If not specified, a default container image will be used.
properties: HashMap<String, String>Optional. A mapping of property names to values, which are used to configure workload execution.
repository_config: Option<RepositoryConfig>Optional. Dependency repository configuration.
autotuning_config: Option<AutotuningConfig>Optional. Autotuning configuration of the workload.
cohort: StringOptional. Cohort identifier. Identifies families of the workloads having the same shape, e.g. daily ETL jobs.
Implementations§
Source§impl RuntimeConfig
impl RuntimeConfig
pub fn new() -> Self
Sourcepub fn set_version<T: Into<String>>(self, v: T) -> Self
pub fn set_version<T: Into<String>>(self, v: T) -> Self
Sets the value of version.
Sourcepub fn set_container_image<T: Into<String>>(self, v: T) -> Self
pub fn set_container_image<T: Into<String>>(self, v: T) -> Self
Sets the value of container_image.
Sourcepub fn set_properties<T, K, V>(self, v: T) -> Self
pub fn set_properties<T, K, V>(self, v: T) -> Self
Sets the value of properties.
Sourcepub fn set_repository_config<T>(self, v: T) -> Selfwhere
T: Into<RepositoryConfig>,
pub fn set_repository_config<T>(self, v: T) -> Selfwhere
T: Into<RepositoryConfig>,
Sets the value of repository_config.
Sourcepub fn set_or_clear_repository_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<RepositoryConfig>,
pub fn set_or_clear_repository_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<RepositoryConfig>,
Sets or clears the value of repository_config.
Sourcepub fn set_autotuning_config<T>(self, v: T) -> Selfwhere
T: Into<AutotuningConfig>,
pub fn set_autotuning_config<T>(self, v: T) -> Selfwhere
T: Into<AutotuningConfig>,
Sets the value of autotuning_config.
Sourcepub fn set_or_clear_autotuning_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<AutotuningConfig>,
pub fn set_or_clear_autotuning_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<AutotuningConfig>,
Sets or clears the value of autotuning_config.
Sourcepub fn set_cohort<T: Into<String>>(self, v: T) -> Self
pub fn set_cohort<T: Into<String>>(self, v: T) -> Self
Sets the value of cohort.
Trait Implementations§
Source§impl Clone for RuntimeConfig
impl Clone for RuntimeConfig
Source§fn clone(&self) -> RuntimeConfig
fn clone(&self) -> RuntimeConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more