#[non_exhaustive]pub struct InfrastructureSpec {
pub resources: Option<Resources>,
pub runtime: Option<Runtime>,
pub network: Option<Network>,
/* private fields */
}Expand description
Configuration for the underlying infrastructure used to run workloads.
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.resources: Option<Resources>Hardware config.
runtime: Option<Runtime>Software config.
network: Option<Network>Networking config.
Implementations§
Source§impl InfrastructureSpec
impl InfrastructureSpec
pub fn new() -> Self
Sourcepub fn set_resources<T: Into<Option<Resources>>>(self, v: T) -> Self
pub fn set_resources<T: Into<Option<Resources>>>(self, v: T) -> Self
Sets the value of resources.
Note that all the setters affecting resources are mutually
exclusive.
Sourcepub fn batch(&self) -> Option<&Box<BatchComputeResources>>
pub fn batch(&self) -> Option<&Box<BatchComputeResources>>
The value of resources
if it holds a Batch, None if the field is not set or
holds a different branch.
Sourcepub fn set_batch<T: Into<Box<BatchComputeResources>>>(self, v: T) -> Self
pub fn set_batch<T: Into<Box<BatchComputeResources>>>(self, v: T) -> Self
Sets the value of resources
to hold a Batch.
Note that all the setters affecting resources are
mutually exclusive.
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 container_image(&self) -> Option<&Box<ContainerImageRuntime>>
pub fn container_image(&self) -> Option<&Box<ContainerImageRuntime>>
The value of runtime
if it holds a ContainerImage, None if the field is not set or
holds a different branch.
Sourcepub fn set_container_image<T: Into<Box<ContainerImageRuntime>>>(
self,
v: T,
) -> Self
pub fn set_container_image<T: Into<Box<ContainerImageRuntime>>>( self, v: T, ) -> Self
Sets the value of runtime
to hold a ContainerImage.
Note that all the setters affecting runtime are
mutually exclusive.
Sourcepub fn set_network<T: Into<Option<Network>>>(self, v: T) -> Self
pub fn set_network<T: Into<Option<Network>>>(self, v: T) -> Self
Sets the value of network.
Note that all the setters affecting network are mutually
exclusive.
Sourcepub fn vpc_network(&self) -> Option<&Box<VpcNetwork>>
pub fn vpc_network(&self) -> Option<&Box<VpcNetwork>>
The value of network
if it holds a VpcNetwork, None if the field is not set or
holds a different branch.
Sourcepub fn set_vpc_network<T: Into<Box<VpcNetwork>>>(self, v: T) -> Self
pub fn set_vpc_network<T: Into<Box<VpcNetwork>>>(self, v: T) -> Self
Sets the value of network
to hold a VpcNetwork.
Note that all the setters affecting network are
mutually exclusive.
Trait Implementations§
Source§impl Clone for InfrastructureSpec
impl Clone for InfrastructureSpec
Source§fn clone(&self) -> InfrastructureSpec
fn clone(&self) -> InfrastructureSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more