#[non_exhaustive]pub struct SubnetworkUtilizationDetailsIPV6Utilization {
pub total_allocated_ip: Option<Uint128>,
pub total_free_ip: Option<Uint128>,
/* private fields */
}Available on crate feature
subnetworks only.Expand description
The IPV6 utilization of a single IP range.
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.total_allocated_ip: Option<Uint128>§total_free_ip: Option<Uint128>Implementations§
Source§impl SubnetworkUtilizationDetailsIPV6Utilization
impl SubnetworkUtilizationDetailsIPV6Utilization
pub fn new() -> Self
Sourcepub fn set_total_allocated_ip<T>(self, v: T) -> Self
pub fn set_total_allocated_ip<T>(self, v: T) -> Self
Sets the value of total_allocated_ip.
§Example
ⓘ
use google_cloud_compute_v1::model::Uint128;
let x = SubnetworkUtilizationDetailsIPV6Utilization::new().set_total_allocated_ip(Uint128::default()/* use setters */);Sourcepub fn set_or_clear_total_allocated_ip<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_total_allocated_ip<T>(self, v: Option<T>) -> Self
Sets or clears the value of total_allocated_ip.
§Example
ⓘ
use google_cloud_compute_v1::model::Uint128;
let x = SubnetworkUtilizationDetailsIPV6Utilization::new().set_or_clear_total_allocated_ip(Some(Uint128::default()/* use setters */));
let x = SubnetworkUtilizationDetailsIPV6Utilization::new().set_or_clear_total_allocated_ip(None::<Uint128>);Sourcepub fn set_total_free_ip<T>(self, v: T) -> Self
pub fn set_total_free_ip<T>(self, v: T) -> Self
Sets the value of total_free_ip.
§Example
ⓘ
use google_cloud_compute_v1::model::Uint128;
let x = SubnetworkUtilizationDetailsIPV6Utilization::new().set_total_free_ip(Uint128::default()/* use setters */);Sourcepub fn set_or_clear_total_free_ip<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_total_free_ip<T>(self, v: Option<T>) -> Self
Sets or clears the value of total_free_ip.
§Example
ⓘ
use google_cloud_compute_v1::model::Uint128;
let x = SubnetworkUtilizationDetailsIPV6Utilization::new().set_or_clear_total_free_ip(Some(Uint128::default()/* use setters */));
let x = SubnetworkUtilizationDetailsIPV6Utilization::new().set_or_clear_total_free_ip(None::<Uint128>);Trait Implementations§
Source§impl Clone for SubnetworkUtilizationDetailsIPV6Utilization
impl Clone for SubnetworkUtilizationDetailsIPV6Utilization
Source§fn clone(&self) -> SubnetworkUtilizationDetailsIPV6Utilization
fn clone(&self) -> SubnetworkUtilizationDetailsIPV6Utilization
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 Default for SubnetworkUtilizationDetailsIPV6Utilization
impl Default for SubnetworkUtilizationDetailsIPV6Utilization
Source§fn default() -> SubnetworkUtilizationDetailsIPV6Utilization
fn default() -> SubnetworkUtilizationDetailsIPV6Utilization
Returns the “default value” for a type. Read more
Source§impl PartialEq for SubnetworkUtilizationDetailsIPV6Utilization
impl PartialEq for SubnetworkUtilizationDetailsIPV6Utilization
Source§fn eq(&self, other: &SubnetworkUtilizationDetailsIPV6Utilization) -> bool
fn eq(&self, other: &SubnetworkUtilizationDetailsIPV6Utilization) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SubnetworkUtilizationDetailsIPV6Utilization
Auto Trait Implementations§
impl Freeze for SubnetworkUtilizationDetailsIPV6Utilization
impl RefUnwindSafe for SubnetworkUtilizationDetailsIPV6Utilization
impl Send for SubnetworkUtilizationDetailsIPV6Utilization
impl Sync for SubnetworkUtilizationDetailsIPV6Utilization
impl Unpin for SubnetworkUtilizationDetailsIPV6Utilization
impl UnwindSafe for SubnetworkUtilizationDetailsIPV6Utilization
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