pub struct BsuToCreate {
pub delete_on_vm_deletion: Option<bool>,
pub iops: Option<i32>,
pub snapshot_id: Option<String>,
pub volume_size: Option<i32>,
pub volume_type: Option<String>,
}Expand description
BsuToCreate : Information about the BSU volume to create.
Fields§
§delete_on_vm_deletion: Option<bool>If set to true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM.
iops: Option<i32>The number of I/O operations per second (IOPS). This parameter must be specified only if you create an io1 volume. The maximum number of IOPS allowed for io1 volumes is 13000 with a maximum performance ratio of 300 IOPS per gibibyte.
snapshot_id: Option<String>The ID of the snapshot used to create the volume.
volume_size: Option<i32>The size of the volume, in gibibytes (GiB).
If you specify a snapshot ID, the volume size must be at least equal to the snapshot size.
If you specify a snapshot ID but no volume size, the volume is created with a size similar to the snapshot one.
volume_type: Option<String>The type of the volume (standard \| io1 \| gp2). If not specified in the request, a standard volume is created.
For more information about volume types, see About Volumes > Volume Types and IOPS.
Implementations§
Source§impl BsuToCreate
impl BsuToCreate
Sourcepub fn new() -> BsuToCreate
pub fn new() -> BsuToCreate
Information about the BSU volume to create.
Trait Implementations§
Source§impl Clone for BsuToCreate
impl Clone for BsuToCreate
Source§fn clone(&self) -> BsuToCreate
fn clone(&self) -> BsuToCreate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BsuToCreate
impl Debug for BsuToCreate
Source§impl Default for BsuToCreate
impl Default for BsuToCreate
Source§fn default() -> BsuToCreate
fn default() -> BsuToCreate
Source§impl<'de> Deserialize<'de> for BsuToCreate
impl<'de> Deserialize<'de> for BsuToCreate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for BsuToCreate
impl PartialEq for BsuToCreate
Source§impl Serialize for BsuToCreate
impl Serialize for BsuToCreate
impl StructuralPartialEq for BsuToCreate
Auto Trait Implementations§
impl Freeze for BsuToCreate
impl RefUnwindSafe for BsuToCreate
impl Send for BsuToCreate
impl Sync for BsuToCreate
impl Unpin for BsuToCreate
impl UnwindSafe for BsuToCreate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more