#[non_exhaustive]pub struct InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy {
pub bandwidth_percentages: Vec<InterconnectApplicationAwareInterconnectBandwidthPercentage>,
/* private fields */
}Available on crate feature
interconnects 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.bandwidth_percentages: Vec<InterconnectApplicationAwareInterconnectBandwidthPercentage>Specify bandwidth percentages for various traffic classes for queuing type Bandwidth Percent.
Implementations§
Source§impl InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy
impl InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy
pub fn new() -> Self
Sourcepub fn set_bandwidth_percentages<T, V>(self, v: T) -> Selfwhere
T: IntoIterator<Item = V>,
V: Into<InterconnectApplicationAwareInterconnectBandwidthPercentage>,
pub fn set_bandwidth_percentages<T, V>(self, v: T) -> Selfwhere
T: IntoIterator<Item = V>,
V: Into<InterconnectApplicationAwareInterconnectBandwidthPercentage>,
Sets the value of bandwidth_percentages.
§Example
ⓘ
use google_cloud_compute_v1::model::InterconnectApplicationAwareInterconnectBandwidthPercentage;
let x = InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy::new()
.set_bandwidth_percentages([
InterconnectApplicationAwareInterconnectBandwidthPercentage::default()/* use setters */,
InterconnectApplicationAwareInterconnectBandwidthPercentage::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy
impl Clone for InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy
Source§fn clone(
&self,
) -> InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy
fn clone( &self, ) -> InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy
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 InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy
impl Default for InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy
Source§fn default() -> InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy
fn default() -> InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy
impl PartialEq for InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy
Source§fn eq(
&self,
other: &InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy,
) -> bool
fn eq( &self, other: &InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy, ) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy
Auto Trait Implementations§
impl Freeze for InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy
impl RefUnwindSafe for InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy
impl Send for InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy
impl Sync for InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy
impl Unpin for InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy
impl UnwindSafe for InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy
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