#[non_exhaustive]pub struct VlanAttachment {
pub peer_vlan_id: i64,
pub peer_ip: String,
pub router_ip: String,
pub pairing_key: String,
pub qos_policy: Option<QosPolicy>,
pub id: String,
pub interconnect_attachment: String,
/* private fields */
}Expand description
VLAN attachment details.
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.peer_vlan_id: i64The peer vlan ID of the attachment.
peer_ip: StringThe peer IP of the attachment.
router_ip: StringThe router IP of the attachment.
pairing_key: StringInput only. Pairing key.
qos_policy: Option<QosPolicy>The QOS policy applied to this VLAN attachment. This value should be preferred to using qos at vrf level.
id: StringImmutable. The identifier of the attachment within vrf.
interconnect_attachment: StringOptional. The name of the vlan attachment within vrf. This is of the form projects/{project_number}/regions/{region}/interconnectAttachments/{interconnect_attachment}
Implementations§
Source§impl VlanAttachment
impl VlanAttachment
pub fn new() -> Self
Sourcepub fn set_peer_vlan_id<T: Into<i64>>(self, v: T) -> Self
pub fn set_peer_vlan_id<T: Into<i64>>(self, v: T) -> Self
Sourcepub fn set_peer_ip<T: Into<String>>(self, v: T) -> Self
pub fn set_peer_ip<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_router_ip<T: Into<String>>(self, v: T) -> Self
pub fn set_router_ip<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_pairing_key<T: Into<String>>(self, v: T) -> Self
pub fn set_pairing_key<T: Into<String>>(self, v: T) -> 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 = VlanAttachment::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 = VlanAttachment::new().set_or_clear_qos_policy(Some(QosPolicy::default()/* use setters */));
let x = VlanAttachment::new().set_or_clear_qos_policy(None::<QosPolicy>);Sourcepub fn set_interconnect_attachment<T: Into<String>>(self, v: T) -> Self
pub fn set_interconnect_attachment<T: Into<String>>(self, v: T) -> Self
Sets the value of interconnect_attachment.
§Example
ⓘ
let x = VlanAttachment::new().set_interconnect_attachment("example");Trait Implementations§
Source§impl Clone for VlanAttachment
impl Clone for VlanAttachment
Source§fn clone(&self) -> VlanAttachment
fn clone(&self) -> VlanAttachment
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 VlanAttachment
impl Debug for VlanAttachment
Source§impl Default for VlanAttachment
impl Default for VlanAttachment
Source§fn default() -> VlanAttachment
fn default() -> VlanAttachment
Returns the “default value” for a type. Read more
Source§impl Message for VlanAttachment
impl Message for VlanAttachment
Source§impl PartialEq for VlanAttachment
impl PartialEq for VlanAttachment
impl StructuralPartialEq for VlanAttachment
Auto Trait Implementations§
impl Freeze for VlanAttachment
impl RefUnwindSafe for VlanAttachment
impl Send for VlanAttachment
impl Sync for VlanAttachment
impl Unpin for VlanAttachment
impl UnwindSafe for VlanAttachment
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