#[non_exhaustive]pub struct NetworkPerformanceConfig {
pub total_egress_bandwidth_tier: Option<TotalEgressBandwidthTier>,
/* private fields */
}Available on crate features
instance-templates or instances or machine-images or region-instance-templates or region-instances 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.total_egress_bandwidth_tier: Option<TotalEgressBandwidthTier>Implementations§
Source§impl NetworkPerformanceConfig
impl NetworkPerformanceConfig
pub fn new() -> Self
Sourcepub fn set_total_egress_bandwidth_tier<T>(self, v: T) -> Selfwhere
T: Into<TotalEgressBandwidthTier>,
pub fn set_total_egress_bandwidth_tier<T>(self, v: T) -> Selfwhere
T: Into<TotalEgressBandwidthTier>,
Sets the value of total_egress_bandwidth_tier.
§Example
ⓘ
use google_cloud_compute_v1::model::network_performance_config::TotalEgressBandwidthTier;
let x0 = NetworkPerformanceConfig::new().set_total_egress_bandwidth_tier(TotalEgressBandwidthTier::Tier1);Sourcepub fn set_or_clear_total_egress_bandwidth_tier<T>(self, v: Option<T>) -> Selfwhere
T: Into<TotalEgressBandwidthTier>,
pub fn set_or_clear_total_egress_bandwidth_tier<T>(self, v: Option<T>) -> Selfwhere
T: Into<TotalEgressBandwidthTier>,
Sets or clears the value of total_egress_bandwidth_tier.
§Example
ⓘ
use google_cloud_compute_v1::model::network_performance_config::TotalEgressBandwidthTier;
let x0 = NetworkPerformanceConfig::new().set_or_clear_total_egress_bandwidth_tier(Some(TotalEgressBandwidthTier::Tier1));
let x_none = NetworkPerformanceConfig::new().set_or_clear_total_egress_bandwidth_tier(None::<TotalEgressBandwidthTier>);Trait Implementations§
Source§impl Clone for NetworkPerformanceConfig
impl Clone for NetworkPerformanceConfig
Source§fn clone(&self) -> NetworkPerformanceConfig
fn clone(&self) -> NetworkPerformanceConfig
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 NetworkPerformanceConfig
impl Debug for NetworkPerformanceConfig
Source§impl Default for NetworkPerformanceConfig
impl Default for NetworkPerformanceConfig
Source§fn default() -> NetworkPerformanceConfig
fn default() -> NetworkPerformanceConfig
Returns the “default value” for a type. Read more
Source§impl Message for NetworkPerformanceConfig
impl Message for NetworkPerformanceConfig
Source§impl PartialEq for NetworkPerformanceConfig
impl PartialEq for NetworkPerformanceConfig
impl StructuralPartialEq for NetworkPerformanceConfig
Auto Trait Implementations§
impl Freeze for NetworkPerformanceConfig
impl RefUnwindSafe for NetworkPerformanceConfig
impl Send for NetworkPerformanceConfig
impl Sync for NetworkPerformanceConfig
impl Unpin for NetworkPerformanceConfig
impl UnwindSafe for NetworkPerformanceConfig
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