#[non_exhaustive]pub struct WireGroupEndpointInterconnect {
pub interconnect: Option<String>,
pub vlan_tags: Vec<i32>,
/* private fields */
}Available on crate feature
wire-groups only.Expand description
The redundant Interconnect connections for this endpoint.
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.interconnect: Option<String>Required. An Interconnect connection. You can specify the connection as a partial or full URL. If the connection is in a different project from the cross-site network, use a format that specifies the project. See the following examples of partial and full URLs:
global/interconnects/NAME
projects/PROJECT_ID/global/interconnects/NAME
-
https://compute.googleapis.com/compute/projects/PROJECT_ID/global/interconnects/NAMERequired. To configure the wire group for VLAN mode, enter a VLAN tag,
which is a number from 2 to 4093. You can autoallocate a tag by
entering 0. To configure the wire group for port mode, enter -1.
Review the following guidelines:
- A VLAN tag must be unique for an Interconnect connection across all attachments and wire groups.
- Both endpoints of a wire must use the same VLAN tag value.
- Single wire and redundant type wire groups must have only one VLAN tag.
- Port mode pseudowires must have a single VLAN tag with a value of
-1for both endpoints. - Box and cross type wire groups must have two VLAN tags. The first is for the same-zone pseudowire, and the second is for the cross-zone pseudowire.
Implementations§
Source§impl WireGroupEndpointInterconnect
impl WireGroupEndpointInterconnect
pub fn new() -> Self
Sourcepub fn set_interconnect<T>(self, v: T) -> Self
pub fn set_interconnect<T>(self, v: T) -> Self
Sets the value of interconnect.
§Example
ⓘ
let x = WireGroupEndpointInterconnect::new().set_interconnect("example");Sourcepub fn set_or_clear_interconnect<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_interconnect<T>(self, v: Option<T>) -> Self
Sets or clears the value of interconnect.
§Example
ⓘ
let x = WireGroupEndpointInterconnect::new().set_or_clear_interconnect(Some("example"));
let x = WireGroupEndpointInterconnect::new().set_or_clear_interconnect(None::<String>);Trait Implementations§
Source§impl Clone for WireGroupEndpointInterconnect
impl Clone for WireGroupEndpointInterconnect
Source§fn clone(&self) -> WireGroupEndpointInterconnect
fn clone(&self) -> WireGroupEndpointInterconnect
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 WireGroupEndpointInterconnect
impl Default for WireGroupEndpointInterconnect
Source§fn default() -> WireGroupEndpointInterconnect
fn default() -> WireGroupEndpointInterconnect
Returns the “default value” for a type. Read more
Source§impl PartialEq for WireGroupEndpointInterconnect
impl PartialEq for WireGroupEndpointInterconnect
Source§fn eq(&self, other: &WireGroupEndpointInterconnect) -> bool
fn eq(&self, other: &WireGroupEndpointInterconnect) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WireGroupEndpointInterconnect
Auto Trait Implementations§
impl Freeze for WireGroupEndpointInterconnect
impl RefUnwindSafe for WireGroupEndpointInterconnect
impl Send for WireGroupEndpointInterconnect
impl Sync for WireGroupEndpointInterconnect
impl Unpin for WireGroupEndpointInterconnect
impl UnwindSafe for WireGroupEndpointInterconnect
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