Struct aws_sdk_lightsail::types::InstanceHardware
source · #[non_exhaustive]pub struct InstanceHardware {
pub cpu_count: Option<i32>,
pub disks: Option<Vec<Disk>>,
pub ram_size_in_gb: Option<f32>,
}Expand description
Describes the hardware for the instance.
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.cpu_count: Option<i32>The number of vCPUs the instance has.
disks: Option<Vec<Disk>>The disks attached to the instance.
ram_size_in_gb: Option<f32>The amount of RAM in GB on the instance (e.g., 1.0).
Implementations§
source§impl InstanceHardware
impl InstanceHardware
sourcepub fn builder() -> InstanceHardwareBuilder
pub fn builder() -> InstanceHardwareBuilder
Creates a new builder-style object to manufacture InstanceHardware.
Trait Implementations§
source§impl Clone for InstanceHardware
impl Clone for InstanceHardware
source§fn clone(&self) -> InstanceHardware
fn clone(&self) -> InstanceHardware
Returns a copy 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 InstanceHardware
impl Debug for InstanceHardware
source§impl PartialEq<InstanceHardware> for InstanceHardware
impl PartialEq<InstanceHardware> for InstanceHardware
source§fn eq(&self, other: &InstanceHardware) -> bool
fn eq(&self, other: &InstanceHardware) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for InstanceHardware
Auto Trait Implementations§
impl RefUnwindSafe for InstanceHardware
impl Send for InstanceHardware
impl Sync for InstanceHardware
impl Unpin for InstanceHardware
impl UnwindSafe for InstanceHardware
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