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