#[non_exhaustive]pub struct RuntimeConfig {
pub uri: String,
pub state: State,
pub runtime: Option<Runtime>,
pub derived_from: Option<DerivedFrom>,
/* private fields */
}Expand description
RuntimeConfig represents the runtimes where the application is deployed.
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.uri: StringRequired. Immutable. The URI of the runtime configuration. For GKE, this is the cluster name. For Cloud Run, this is the service name.
state: StateOutput only. The state of the Runtime.
runtime: Option<Runtime>The type of the runtime.
derived_from: Option<DerivedFrom>Where the runtime is derived from.
Implementations§
Source§impl RuntimeConfig
impl RuntimeConfig
pub fn new() -> Self
Sourcepub fn set_runtime<T: Into<Option<Runtime>>>(self, v: T) -> Self
pub fn set_runtime<T: Into<Option<Runtime>>>(self, v: T) -> Self
Sets the value of runtime.
Note that all the setters affecting runtime are mutually
exclusive.
Sourcepub fn gke_workload(&self) -> Option<&Box<GKEWorkload>>
pub fn gke_workload(&self) -> Option<&Box<GKEWorkload>>
The value of runtime
if it holds a GkeWorkload, None if the field is not set or
holds a different branch.
Sourcepub fn set_gke_workload<T: Into<Box<GKEWorkload>>>(self, v: T) -> Self
pub fn set_gke_workload<T: Into<Box<GKEWorkload>>>(self, v: T) -> Self
Sets the value of runtime
to hold a GkeWorkload.
Note that all the setters affecting runtime are
mutually exclusive.
Sourcepub fn set_derived_from<T: Into<Option<DerivedFrom>>>(self, v: T) -> Self
pub fn set_derived_from<T: Into<Option<DerivedFrom>>>(self, v: T) -> Self
Sets the value of derived_from.
Note that all the setters affecting derived_from are mutually
exclusive.
Sourcepub fn app_hub_workload(&self) -> Option<&Box<AppHubWorkload>>
pub fn app_hub_workload(&self) -> Option<&Box<AppHubWorkload>>
The value of derived_from
if it holds a AppHubWorkload, None if the field is not set or
holds a different branch.
Sourcepub fn set_app_hub_workload<T: Into<Box<AppHubWorkload>>>(self, v: T) -> Self
pub fn set_app_hub_workload<T: Into<Box<AppHubWorkload>>>(self, v: T) -> Self
Sets the value of derived_from
to hold a AppHubWorkload.
Note that all the setters affecting derived_from are
mutually exclusive.
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