#[non_exhaustive]pub struct StoragePoolsScopedList {
pub storage_pools: Vec<StoragePool>,
pub warning: Option<Warning>,
/* private fields */
}Available on crate feature
storage-pools only.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.storage_pools: Vec<StoragePool>[Output Only] A list of storage pool contained in this scope.
warning: Option<Warning>[Output Only] Informational warning which replaces the list of storage pool when the list is empty.
Implementations§
Source§impl StoragePoolsScopedList
impl StoragePoolsScopedList
pub fn new() -> Self
Sourcepub fn set_storage_pools<T, V>(self, v: T) -> Self
pub fn set_storage_pools<T, V>(self, v: T) -> Self
Sets the value of storage_pools.
§Example
ⓘ
use google_cloud_compute_v1::model::StoragePool;
let x = StoragePoolsScopedList::new()
.set_storage_pools([
StoragePool::default()/* use setters */,
StoragePool::default()/* use (different) setters */,
]);Sourcepub fn set_warning<T>(self, v: T) -> Self
pub fn set_warning<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_warning<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_warning<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for StoragePoolsScopedList
impl Clone for StoragePoolsScopedList
Source§fn clone(&self) -> StoragePoolsScopedList
fn clone(&self) -> StoragePoolsScopedList
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StoragePoolsScopedList
impl Debug for StoragePoolsScopedList
Source§impl Default for StoragePoolsScopedList
impl Default for StoragePoolsScopedList
Source§fn default() -> StoragePoolsScopedList
fn default() -> StoragePoolsScopedList
Returns the “default value” for a type. Read more
Source§impl Message for StoragePoolsScopedList
impl Message for StoragePoolsScopedList
Source§impl PartialEq for StoragePoolsScopedList
impl PartialEq for StoragePoolsScopedList
impl StructuralPartialEq for StoragePoolsScopedList
Auto Trait Implementations§
impl Freeze for StoragePoolsScopedList
impl RefUnwindSafe for StoragePoolsScopedList
impl Send for StoragePoolsScopedList
impl Sync for StoragePoolsScopedList
impl Unpin for StoragePoolsScopedList
impl UnwindSafe for StoragePoolsScopedList
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