#[non_exhaustive]pub struct StorageListOptions {
pub account_id: i64,
pub search: Option<String>,
pub region_id: Option<i64>,
pub storage_type: Option<String>,
pub provider_type: Option<String>,
pub is_active: Option<bool>,
pub direct_access: 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§search: Option<String>§region_id: Option<i64>§storage_type: Option<String>§provider_type: Option<String>§is_active: Option<bool>§direct_access: Option<bool>§page: Option<i64>§limit: Option<i64>Implementations§
Source§impl StorageListOptions
impl StorageListOptions
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_search(self, value: impl Into<String>) -> Self
pub fn with_search(self, value: impl Into<String>) -> Self
Sets search.
Sourcepub fn with_region_id(self, value: i64) -> Self
pub fn with_region_id(self, value: i64) -> Self
Sets region_id.
Sourcepub fn with_storage_type(self, value: impl Into<String>) -> Self
pub fn with_storage_type(self, value: impl Into<String>) -> Self
Sets storage_type.
Sourcepub fn with_provider_type(self, value: impl Into<String>) -> Self
pub fn with_provider_type(self, value: impl Into<String>) -> Self
Sets provider_type.
Sourcepub fn with_is_active(self, value: bool) -> Self
pub fn with_is_active(self, value: bool) -> Self
Sets is_active.
Sourcepub fn with_direct_access(self, value: bool) -> Self
pub fn with_direct_access(self, value: bool) -> Self
Sets direct_access.
Sourcepub fn with_limit(self, value: i64) -> Self
pub fn with_limit(self, value: i64) -> Self
Sets limit.
Trait Implementations§
Source§impl Clone for StorageListOptions
impl Clone for StorageListOptions
Source§impl Debug for StorageListOptions
impl Debug for StorageListOptions
Auto Trait Implementations§
impl Freeze for StorageListOptions
impl RefUnwindSafe for StorageListOptions
impl Send for StorageListOptions
impl Sync for StorageListOptions
impl Unpin for StorageListOptions
impl UnsafeUnpin for StorageListOptions
impl UnwindSafe for StorageListOptions
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