#[non_exhaustive]pub struct Vrf {
pub name: String,
pub state: State,
pub qos_policy: Option<QosPolicy>,
pub vlan_attachments: Vec<VlanAttachment>,
/* private fields */
}Expand description
A network VRF.
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.name: StringThe name of the VRF.
state: StateThe possible state of VRF.
qos_policy: Option<QosPolicy>The QOS policy applied to this VRF. The value is only meaningful when all the vlan attachments have the same QoS. This field should not be used for new integrations, use vlan attachment level qos instead. The field is left for backward-compatibility.
vlan_attachments: Vec<VlanAttachment>The list of VLAN attachments for the VRF.
Implementations§
Source§impl Vrf
impl Vrf
pub fn new() -> Self
Sourcepub fn set_qos_policy<T>(self, v: T) -> Self
pub fn set_qos_policy<T>(self, v: T) -> Self
Sets the value of qos_policy.
§Example
ⓘ
use google_cloud_baremetalsolution_v2::model::vrf::QosPolicy;
let x = Vrf::new().set_qos_policy(QosPolicy::default()/* use setters */);Sourcepub fn set_or_clear_qos_policy<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_qos_policy<T>(self, v: Option<T>) -> Self
Sets or clears the value of qos_policy.
§Example
ⓘ
use google_cloud_baremetalsolution_v2::model::vrf::QosPolicy;
let x = Vrf::new().set_or_clear_qos_policy(Some(QosPolicy::default()/* use setters */));
let x = Vrf::new().set_or_clear_qos_policy(None::<QosPolicy>);Sourcepub fn set_vlan_attachments<T, V>(self, v: T) -> Self
pub fn set_vlan_attachments<T, V>(self, v: T) -> Self
Sets the value of vlan_attachments.
§Example
ⓘ
use google_cloud_baremetalsolution_v2::model::vrf::VlanAttachment;
let x = Vrf::new()
.set_vlan_attachments([
VlanAttachment::default()/* use setters */,
VlanAttachment::default()/* use (different) setters */,
]);Trait Implementations§
impl StructuralPartialEq for Vrf
Auto Trait Implementations§
impl Freeze for Vrf
impl RefUnwindSafe for Vrf
impl Send for Vrf
impl Sync for Vrf
impl Unpin for Vrf
impl UnwindSafe for Vrf
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