#[non_exhaustive]pub struct TargetPoolsScopedList {
pub target_pools: Vec<TargetPool>,
pub warning: Option<Warning>,
/* private fields */
}Available on crate feature
target-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.target_pools: Vec<TargetPool>A list of target pools contained in this scope.
warning: Option<Warning>Informational warning which replaces the list of addresses when the list is empty.
Implementations§
Source§impl TargetPoolsScopedList
impl TargetPoolsScopedList
pub fn new() -> Self
Sourcepub fn set_target_pools<T, V>(self, v: T) -> Self
pub fn set_target_pools<T, V>(self, v: T) -> Self
Sets the value of target_pools.
§Example
ⓘ
use google_cloud_compute_v1::model::TargetPool;
let x = TargetPoolsScopedList::new()
.set_target_pools([
TargetPool::default()/* use setters */,
TargetPool::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 TargetPoolsScopedList
impl Clone for TargetPoolsScopedList
Source§fn clone(&self) -> TargetPoolsScopedList
fn clone(&self) -> TargetPoolsScopedList
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 TargetPoolsScopedList
impl Debug for TargetPoolsScopedList
Source§impl Default for TargetPoolsScopedList
impl Default for TargetPoolsScopedList
Source§fn default() -> TargetPoolsScopedList
fn default() -> TargetPoolsScopedList
Returns the “default value” for a type. Read more
Source§impl Message for TargetPoolsScopedList
impl Message for TargetPoolsScopedList
Source§impl PartialEq for TargetPoolsScopedList
impl PartialEq for TargetPoolsScopedList
impl StructuralPartialEq for TargetPoolsScopedList
Auto Trait Implementations§
impl Freeze for TargetPoolsScopedList
impl RefUnwindSafe for TargetPoolsScopedList
impl Send for TargetPoolsScopedList
impl Sync for TargetPoolsScopedList
impl Unpin for TargetPoolsScopedList
impl UnwindSafe for TargetPoolsScopedList
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