#[non_exhaustive]pub struct InterconnectAttachmentGroupLogicalStructureRegion {
pub metros: Vec<InterconnectAttachmentGroupLogicalStructureRegionMetro>,
pub region: Option<String>,
/* private fields */
}Available on crate feature
interconnect-attachment-groups only.Expand description
[Output Only] The regions Attachments in this group are in.
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.metros: Vec<InterconnectAttachmentGroupLogicalStructureRegionMetro>§region: Option<String>Output only. [Output Only] The name of a region, like “us-central1”.
Implementations§
Source§impl InterconnectAttachmentGroupLogicalStructureRegion
impl InterconnectAttachmentGroupLogicalStructureRegion
pub fn new() -> Self
Sourcepub fn set_metros<T, V>(self, v: T) -> Self
pub fn set_metros<T, V>(self, v: T) -> Self
Sets the value of metros.
§Example
ⓘ
use google_cloud_compute_v1::model::InterconnectAttachmentGroupLogicalStructureRegionMetro;
let x = InterconnectAttachmentGroupLogicalStructureRegion::new()
.set_metros([
InterconnectAttachmentGroupLogicalStructureRegionMetro::default()/* use setters */,
InterconnectAttachmentGroupLogicalStructureRegionMetro::default()/* use (different) setters */,
]);Sourcepub fn set_region<T>(self, v: T) -> Self
pub fn set_region<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_region<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_region<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for InterconnectAttachmentGroupLogicalStructureRegion
impl Clone for InterconnectAttachmentGroupLogicalStructureRegion
Source§fn clone(&self) -> InterconnectAttachmentGroupLogicalStructureRegion
fn clone(&self) -> InterconnectAttachmentGroupLogicalStructureRegion
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 InterconnectAttachmentGroupLogicalStructureRegion
impl Default for InterconnectAttachmentGroupLogicalStructureRegion
Source§fn default() -> InterconnectAttachmentGroupLogicalStructureRegion
fn default() -> InterconnectAttachmentGroupLogicalStructureRegion
Returns the “default value” for a type. Read more
Source§impl PartialEq for InterconnectAttachmentGroupLogicalStructureRegion
impl PartialEq for InterconnectAttachmentGroupLogicalStructureRegion
Source§fn eq(&self, other: &InterconnectAttachmentGroupLogicalStructureRegion) -> bool
fn eq(&self, other: &InterconnectAttachmentGroupLogicalStructureRegion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InterconnectAttachmentGroupLogicalStructureRegion
Auto Trait Implementations§
impl Freeze for InterconnectAttachmentGroupLogicalStructureRegion
impl RefUnwindSafe for InterconnectAttachmentGroupLogicalStructureRegion
impl Send for InterconnectAttachmentGroupLogicalStructureRegion
impl Sync for InterconnectAttachmentGroupLogicalStructureRegion
impl Unpin for InterconnectAttachmentGroupLogicalStructureRegion
impl UnwindSafe for InterconnectAttachmentGroupLogicalStructureRegion
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