#[non_exhaustive]pub struct SnapshotReservationDetail {
pub reserved_space_gib: i64,
pub reserved_space_used_percent: i32,
pub reserved_space_remaining_gib: i64,
pub reserved_space_percent: i32,
/* private fields */
}Expand description
Details about snapshot space reservation and usage on the storage volume.
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.reserved_space_gib: i64The space on this storage volume reserved for snapshots, shown in GiB.
reserved_space_used_percent: i32The percent of snapshot space on this storage volume actually being used by the snapshot copies. This value might be higher than 100% if the snapshot copies have overflowed into the data portion of the storage volume.
reserved_space_remaining_gib: i64The amount, in GiB, of available space in this storage volume’s reserved snapshot space.
reserved_space_percent: i32Percent of the total Volume size reserved for snapshot copies. Enabling snapshots requires reserving 20% or more of the storage volume space for snapshots. Maximum reserved space for snapshots is 40%. Setting this field will effectively set snapshot_enabled to true.
Implementations§
Source§impl SnapshotReservationDetail
impl SnapshotReservationDetail
pub fn new() -> Self
Sourcepub fn set_reserved_space_gib<T: Into<i64>>(self, v: T) -> Self
pub fn set_reserved_space_gib<T: Into<i64>>(self, v: T) -> Self
Sets the value of reserved_space_gib.
§Example
let x = SnapshotReservationDetail::new().set_reserved_space_gib(42);Sourcepub fn set_reserved_space_used_percent<T: Into<i32>>(self, v: T) -> Self
pub fn set_reserved_space_used_percent<T: Into<i32>>(self, v: T) -> Self
Sets the value of reserved_space_used_percent.
§Example
let x = SnapshotReservationDetail::new().set_reserved_space_used_percent(42);Sourcepub fn set_reserved_space_remaining_gib<T: Into<i64>>(self, v: T) -> Self
pub fn set_reserved_space_remaining_gib<T: Into<i64>>(self, v: T) -> Self
Sets the value of reserved_space_remaining_gib.
§Example
let x = SnapshotReservationDetail::new().set_reserved_space_remaining_gib(42);Sourcepub fn set_reserved_space_percent<T: Into<i32>>(self, v: T) -> Self
pub fn set_reserved_space_percent<T: Into<i32>>(self, v: T) -> Self
Sets the value of reserved_space_percent.
§Example
let x = SnapshotReservationDetail::new().set_reserved_space_percent(42);Trait Implementations§
Source§impl Clone for SnapshotReservationDetail
impl Clone for SnapshotReservationDetail
Source§fn clone(&self) -> SnapshotReservationDetail
fn clone(&self) -> SnapshotReservationDetail
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more