#[non_exhaustive]pub struct RuntimeConfig {
pub runtime_config: Option<RuntimeConfig>,
/* private fields */
}
Expand description
RuntimeConfig contains the runtime specific configurations for a deployment strategy.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.runtime_config: Option<RuntimeConfig>
The runtime configuration details.
Implementations§
Source§impl RuntimeConfig
impl RuntimeConfig
pub fn new() -> Self
Sourcepub fn set_runtime_config<T: Into<Option<RuntimeConfig>>>(self, v: T) -> Self
pub fn set_runtime_config<T: Into<Option<RuntimeConfig>>>(self, v: T) -> Self
Sets the value of runtime_config.
Note that all the setters affecting runtime_config
are mutually
exclusive.
Sourcepub fn kubernetes(&self) -> Option<&Box<KubernetesConfig>>
pub fn kubernetes(&self) -> Option<&Box<KubernetesConfig>>
The value of runtime_config
if it holds a Kubernetes
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_kubernetes<T: Into<Box<KubernetesConfig>>>(self, v: T) -> Self
pub fn set_kubernetes<T: Into<Box<KubernetesConfig>>>(self, v: T) -> Self
Sets the value of runtime_config
to hold a Kubernetes
.
Note that all the setters affecting runtime_config
are
mutually exclusive.
Sourcepub fn cloud_run(&self) -> Option<&Box<CloudRunConfig>>
pub fn cloud_run(&self) -> Option<&Box<CloudRunConfig>>
The value of runtime_config
if it holds a CloudRun
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_cloud_run<T: Into<Box<CloudRunConfig>>>(self, v: T) -> Self
pub fn set_cloud_run<T: Into<Box<CloudRunConfig>>>(self, v: T) -> Self
Sets the value of runtime_config
to hold a CloudRun
.
Note that all the setters affecting runtime_config
are
mutually exclusive.
Trait Implementations§
Source§impl Clone for RuntimeConfig
impl Clone for RuntimeConfig
Source§fn clone(&self) -> RuntimeConfig
fn clone(&self) -> RuntimeConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RuntimeConfig
impl Debug for RuntimeConfig
Source§impl Default for RuntimeConfig
impl Default for RuntimeConfig
Source§fn default() -> RuntimeConfig
fn default() -> RuntimeConfig
Returns the “default value” for a type. Read more
Source§impl Message for RuntimeConfig
impl Message for RuntimeConfig
Source§impl PartialEq for RuntimeConfig
impl PartialEq for RuntimeConfig
impl StructuralPartialEq for RuntimeConfig
Auto Trait Implementations§
impl Freeze for RuntimeConfig
impl RefUnwindSafe for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnwindSafe for RuntimeConfig
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
Mutably borrows from an owned value. Read more