logo
pub struct Volume {
Show 14 fields pub availability_zone: Option<String>, pub device: Option<String>, pub ec_2_volume_id: Option<String>, pub encrypted: Option<bool>, pub instance_id: Option<String>, pub iops: Option<i64>, pub mount_point: Option<String>, pub name: Option<String>, pub raid_array_id: Option<String>, pub region: Option<String>, pub size: Option<i64>, pub status: Option<String>, pub volume_id: Option<String>, pub volume_type: Option<String>,
}
Expand description

Describes an instance's Amazon EBS volume.

Fields

availability_zone: Option<String>

The volume Availability Zone. For more information, see Regions and Endpoints.

device: Option<String>

The device name.

ec_2_volume_id: Option<String>

The Amazon EC2 volume ID.

encrypted: Option<bool>

Specifies whether an Amazon EBS volume is encrypted. For more information, see Amazon EBS Encryption.

instance_id: Option<String>

The instance ID.

iops: Option<i64>

For PIOPS volumes, the IOPS per disk.

mount_point: Option<String>

The volume mount point. For example, "/mnt/disk1".

name: Option<String>

The volume name.

raid_array_id: Option<String>

The RAID array ID.

region: Option<String>

The AWS region. For more information about AWS regions, see Regions and Endpoints.

size: Option<i64>

The volume size.

status: Option<String>

The value returned by DescribeVolumes.

volume_id: Option<String>

The volume ID.

volume_type: Option<String>

The volume type. For more information, see Amazon EBS Volume Types.

  • standard - Magnetic. Magnetic volumes must have a minimum size of 1 GiB and a maximum size of 1024 GiB.

  • io1 - Provisioned IOPS (SSD). PIOPS volumes must have a minimum size of 4 GiB and a maximum size of 16384 GiB.

  • gp2 - General Purpose (SSD). General purpose volumes must have a minimum size of 1 GiB and a maximum size of 16384 GiB.

  • st1 - Throughput Optimized hard disk drive (HDD). Throughput optimized HDD volumes must have a minimum size of 500 GiB and a maximum size of 16384 GiB.

  • sc1 - Cold HDD. Cold HDD volumes must have a minimum size of 500 GiB and a maximum size of 16384 GiB.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more