#[non_exhaustive]pub struct CustomerManagedWorkerCapabilities {
pub v_cpu_count: Option<VCpuCountRange>,
pub memory_mib: Option<MemoryMiBRange>,
pub accelerator_types: Option<Vec<AcceleratorType>>,
pub accelerator_count: Option<AcceleratorCountRange>,
pub accelerator_total_memory_mib: Option<AcceleratorTotalMemoryMiBRange>,
pub os_family: CustomerManagedFleetOperatingSystemFamily,
pub cpu_architecture_type: CpuArchitectureType,
pub custom_amounts: Option<Vec<FleetAmountCapability>>,
pub custom_attributes: Option<Vec<FleetAttributeCapability>>,
}Expand description
The worker capabilities for a customer managed workflow.
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.v_cpu_count: Option<VCpuCountRange>The vCPU count for the customer manged worker capabilities.
memory_mib: Option<MemoryMiBRange>The memory (MiB).
accelerator_types: Option<Vec<AcceleratorType>>The accelerator types for the customer managed worker capabilities.
accelerator_count: Option<AcceleratorCountRange>The range of the accelerator.
accelerator_total_memory_mib: Option<AcceleratorTotalMemoryMiBRange>The total memory (MiB) for the customer managed worker capabilities.
os_family: CustomerManagedFleetOperatingSystemFamilyThe operating system (OS) family.
cpu_architecture_type: CpuArchitectureTypeThe CPU architecture type for the customer managed worker capabilities.
custom_amounts: Option<Vec<FleetAmountCapability>>Custom requirement ranges for customer managed worker capabilities.
custom_attributes: Option<Vec<FleetAttributeCapability>>Custom attributes for the customer manged worker capabilities.
Implementations§
source§impl CustomerManagedWorkerCapabilities
impl CustomerManagedWorkerCapabilities
sourcepub fn v_cpu_count(&self) -> Option<&VCpuCountRange>
pub fn v_cpu_count(&self) -> Option<&VCpuCountRange>
The vCPU count for the customer manged worker capabilities.
sourcepub fn memory_mib(&self) -> Option<&MemoryMiBRange>
pub fn memory_mib(&self) -> Option<&MemoryMiBRange>
The memory (MiB).
sourcepub fn accelerator_types(&self) -> &[AcceleratorType]
pub fn accelerator_types(&self) -> &[AcceleratorType]
The accelerator types for the customer managed worker capabilities.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .accelerator_types.is_none().
sourcepub fn accelerator_count(&self) -> Option<&AcceleratorCountRange>
pub fn accelerator_count(&self) -> Option<&AcceleratorCountRange>
The range of the accelerator.
sourcepub fn accelerator_total_memory_mib(
&self
) -> Option<&AcceleratorTotalMemoryMiBRange>
pub fn accelerator_total_memory_mib( &self ) -> Option<&AcceleratorTotalMemoryMiBRange>
The total memory (MiB) for the customer managed worker capabilities.
sourcepub fn os_family(&self) -> &CustomerManagedFleetOperatingSystemFamily
pub fn os_family(&self) -> &CustomerManagedFleetOperatingSystemFamily
The operating system (OS) family.
sourcepub fn cpu_architecture_type(&self) -> &CpuArchitectureType
pub fn cpu_architecture_type(&self) -> &CpuArchitectureType
The CPU architecture type for the customer managed worker capabilities.
sourcepub fn custom_amounts(&self) -> &[FleetAmountCapability]
pub fn custom_amounts(&self) -> &[FleetAmountCapability]
Custom requirement ranges for customer managed worker capabilities.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .custom_amounts.is_none().
sourcepub fn custom_attributes(&self) -> &[FleetAttributeCapability]
pub fn custom_attributes(&self) -> &[FleetAttributeCapability]
Custom attributes for the customer manged worker capabilities.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .custom_attributes.is_none().
source§impl CustomerManagedWorkerCapabilities
impl CustomerManagedWorkerCapabilities
sourcepub fn builder() -> CustomerManagedWorkerCapabilitiesBuilder
pub fn builder() -> CustomerManagedWorkerCapabilitiesBuilder
Creates a new builder-style object to manufacture CustomerManagedWorkerCapabilities.
Trait Implementations§
source§impl Clone for CustomerManagedWorkerCapabilities
impl Clone for CustomerManagedWorkerCapabilities
source§fn clone(&self) -> CustomerManagedWorkerCapabilities
fn clone(&self) -> CustomerManagedWorkerCapabilities
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for CustomerManagedWorkerCapabilities
impl PartialEq for CustomerManagedWorkerCapabilities
source§fn eq(&self, other: &CustomerManagedWorkerCapabilities) -> bool
fn eq(&self, other: &CustomerManagedWorkerCapabilities) -> bool
self and other values to be equal, and is used
by ==.