#[non_exhaustive]pub struct CreateVolumeRequest {Show 13 fields
pub account_id: i64,
pub storage_id: i64,
pub name: String,
pub description: Option<String>,
pub volume_type: String,
pub encryption: Option<bool>,
pub encryption_key: Option<String>,
pub retention: Option<VolumeRetentionPolicy>,
pub versioning: Option<VolumeVersioningPolicy>,
pub compaction: Option<String>,
pub quota_limit: Option<i64>,
pub metadata_cluster_id: Option<i64>,
pub metadata_cluster_uuid: Option<String>,
}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.account_id: i64§storage_id: i64§name: String§description: Option<String>§volume_type: String§encryption: Option<bool>§encryption_key: Option<String>§retention: Option<VolumeRetentionPolicy>§versioning: Option<VolumeVersioningPolicy>§compaction: Option<String>§quota_limit: Option<i64>§metadata_cluster_id: Option<i64>§metadata_cluster_uuid: Option<String>Implementations§
Source§impl CreateVolumeRequest
impl CreateVolumeRequest
Sourcepub fn new(
account_id: i64,
storage_id: i64,
name: impl Into<String>,
volume_type: impl Into<String>,
) -> Self
pub fn new( account_id: i64, storage_id: i64, name: impl Into<String>, volume_type: impl Into<String>, ) -> Self
Builds the value from its required fields. Optional fields start unset.
Sourcepub fn with_description(self, value: impl Into<String>) -> Self
pub fn with_description(self, value: impl Into<String>) -> Self
Sets description.
Sourcepub fn with_encryption(self, value: bool) -> Self
pub fn with_encryption(self, value: bool) -> Self
Sets encryption.
Sourcepub fn with_encryption_key(self, value: impl Into<String>) -> Self
pub fn with_encryption_key(self, value: impl Into<String>) -> Self
Sets encryption_key.
Sourcepub fn with_retention(self, value: VolumeRetentionPolicy) -> Self
pub fn with_retention(self, value: VolumeRetentionPolicy) -> Self
Sets retention.
Sourcepub fn with_versioning(self, value: VolumeVersioningPolicy) -> Self
pub fn with_versioning(self, value: VolumeVersioningPolicy) -> Self
Sets versioning.
Sourcepub fn with_compaction(self, value: impl Into<String>) -> Self
pub fn with_compaction(self, value: impl Into<String>) -> Self
Sets compaction.
Sourcepub fn with_quota_limit(self, value: i64) -> Self
pub fn with_quota_limit(self, value: i64) -> Self
Sets quota_limit.
Sourcepub fn with_metadata_cluster_id(self, value: i64) -> Self
pub fn with_metadata_cluster_id(self, value: i64) -> Self
Sets metadata_cluster_id.
Sourcepub fn with_metadata_cluster_uuid(self, value: impl Into<String>) -> Self
pub fn with_metadata_cluster_uuid(self, value: impl Into<String>) -> Self
Sets metadata_cluster_uuid.
Trait Implementations§
Source§impl Clone for CreateVolumeRequest
impl Clone for CreateVolumeRequest
Source§impl Debug for CreateVolumeRequest
impl Debug for CreateVolumeRequest
Source§impl Default for CreateVolumeRequest
impl Default for CreateVolumeRequest
Auto Trait Implementations§
impl Freeze for CreateVolumeRequest
impl RefUnwindSafe for CreateVolumeRequest
impl Send for CreateVolumeRequest
impl Sync for CreateVolumeRequest
impl Unpin for CreateVolumeRequest
impl UnsafeUnpin for CreateVolumeRequest
impl UnwindSafe for CreateVolumeRequest
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