#[non_exhaustive]pub struct VolumeListOptions {
pub account_id: i64,
pub region_id: Option<i64>,
pub metadata_cluster_id: Option<i64>,
pub storage_id: Option<i64>,
pub volume_type: Option<String>,
pub locked: Option<bool>,
pub is_active: Option<bool>,
pub page: Option<i64>,
pub limit: Option<i64>,
}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§region_id: Option<i64>§metadata_cluster_id: Option<i64>§storage_id: Option<i64>§volume_type: Option<String>§locked: Option<bool>§is_active: Option<bool>§page: Option<i64>§limit: Option<i64>Implementations§
Source§impl VolumeListOptions
impl VolumeListOptions
Sourcepub fn new(account_id: i64) -> Self
pub fn new(account_id: i64) -> Self
Builds the value from its required fields. Optional fields start unset.
Sourcepub fn with_region_id(self, value: i64) -> Self
pub fn with_region_id(self, value: i64) -> Self
Sets region_id.
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_storage_id(self, value: i64) -> Self
pub fn with_storage_id(self, value: i64) -> Self
Sets storage_id.
Sourcepub fn with_volume_type(self, value: impl Into<String>) -> Self
pub fn with_volume_type(self, value: impl Into<String>) -> Self
Sets volume_type.
Sourcepub fn with_locked(self, value: bool) -> Self
pub fn with_locked(self, value: bool) -> Self
Sets locked.
Sourcepub fn with_is_active(self, value: bool) -> Self
pub fn with_is_active(self, value: bool) -> Self
Sets is_active.
Sourcepub fn with_limit(self, value: i64) -> Self
pub fn with_limit(self, value: i64) -> Self
Sets limit.
Trait Implementations§
Source§impl Clone for VolumeListOptions
impl Clone for VolumeListOptions
Source§impl Debug for VolumeListOptions
impl Debug for VolumeListOptions
Auto Trait Implementations§
impl Freeze for VolumeListOptions
impl RefUnwindSafe for VolumeListOptions
impl Send for VolumeListOptions
impl Sync for VolumeListOptions
impl Unpin for VolumeListOptions
impl UnsafeUnpin for VolumeListOptions
impl UnwindSafe for VolumeListOptions
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