#[non_exhaustive]pub struct InterconnectLocationRegionInfo {
pub expected_rtt_ms: Option<i64>,
pub l_2_forwarding_enabled: Option<bool>,
pub location_presence: Option<LocationPresence>,
pub region: Option<String>,
/* private fields */
}interconnect-locations only.Expand description
Information about any potential InterconnectAttachments between an Interconnect at a specific InterconnectLocation, and a specific Cloud Region.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.expected_rtt_ms: Option<i64>Output only. Expected round-trip time in milliseconds, from this InterconnectLocation to a VM in this region.
l_2_forwarding_enabled: Option<bool>Output only. Identifies whether L2 Interconnect Attachments can be created in this region for interconnects that are in this location.
location_presence: Option<LocationPresence>Output only. Identifies the network presence of this location.
region: Option<String>Output only. URL for the region of this location.
Implementations§
Source§impl InterconnectLocationRegionInfo
impl InterconnectLocationRegionInfo
Sourcepub fn set_expected_rtt_ms<T>(self, v: T) -> Self
pub fn set_expected_rtt_ms<T>(self, v: T) -> Self
Sets the value of expected_rtt_ms.
§Example
let x = InterconnectLocationRegionInfo::new().set_expected_rtt_ms(42);Sourcepub fn set_or_clear_expected_rtt_ms<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_expected_rtt_ms<T>(self, v: Option<T>) -> Self
Sets or clears the value of expected_rtt_ms.
§Example
let x = InterconnectLocationRegionInfo::new().set_or_clear_expected_rtt_ms(Some(42));
let x = InterconnectLocationRegionInfo::new().set_or_clear_expected_rtt_ms(None::<i32>);Sourcepub fn set_l_2_forwarding_enabled<T>(self, v: T) -> Self
pub fn set_l_2_forwarding_enabled<T>(self, v: T) -> Self
Sets the value of l_2_forwarding_enabled.
§Example
let x = InterconnectLocationRegionInfo::new().set_l_2_forwarding_enabled(true);Sourcepub fn set_or_clear_l_2_forwarding_enabled<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_l_2_forwarding_enabled<T>(self, v: Option<T>) -> Self
Sets or clears the value of l_2_forwarding_enabled.
§Example
let x = InterconnectLocationRegionInfo::new().set_or_clear_l_2_forwarding_enabled(Some(false));
let x = InterconnectLocationRegionInfo::new().set_or_clear_l_2_forwarding_enabled(None::<bool>);Sourcepub fn set_location_presence<T>(self, v: T) -> Selfwhere
T: Into<LocationPresence>,
pub fn set_location_presence<T>(self, v: T) -> Selfwhere
T: Into<LocationPresence>,
Sets the value of location_presence.
§Example
use google_cloud_compute_v1::model::interconnect_location_region_info::LocationPresence;
let x0 = InterconnectLocationRegionInfo::new().set_location_presence(LocationPresence::LocalRegion);
let x1 = InterconnectLocationRegionInfo::new().set_location_presence(LocationPresence::LpGlobal);
let x2 = InterconnectLocationRegionInfo::new().set_location_presence(LocationPresence::LpLocalRegion);Sourcepub fn set_or_clear_location_presence<T>(self, v: Option<T>) -> Selfwhere
T: Into<LocationPresence>,
pub fn set_or_clear_location_presence<T>(self, v: Option<T>) -> Selfwhere
T: Into<LocationPresence>,
Sets or clears the value of location_presence.
§Example
use google_cloud_compute_v1::model::interconnect_location_region_info::LocationPresence;
let x0 = InterconnectLocationRegionInfo::new().set_or_clear_location_presence(Some(LocationPresence::LocalRegion));
let x1 = InterconnectLocationRegionInfo::new().set_or_clear_location_presence(Some(LocationPresence::LpGlobal));
let x2 = InterconnectLocationRegionInfo::new().set_or_clear_location_presence(Some(LocationPresence::LpLocalRegion));
let x_none = InterconnectLocationRegionInfo::new().set_or_clear_location_presence(None::<LocationPresence>);Sourcepub fn set_region<T>(self, v: T) -> Self
pub fn set_region<T>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for InterconnectLocationRegionInfo
impl Clone for InterconnectLocationRegionInfo
Source§fn clone(&self) -> InterconnectLocationRegionInfo
fn clone(&self) -> InterconnectLocationRegionInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for InterconnectLocationRegionInfo
impl Default for InterconnectLocationRegionInfo
Source§fn default() -> InterconnectLocationRegionInfo
fn default() -> InterconnectLocationRegionInfo
impl StructuralPartialEq for InterconnectLocationRegionInfo
Auto Trait Implementations§
impl Freeze for InterconnectLocationRegionInfo
impl RefUnwindSafe for InterconnectLocationRegionInfo
impl Send for InterconnectLocationRegionInfo
impl Sync for InterconnectLocationRegionInfo
impl Unpin for InterconnectLocationRegionInfo
impl UnsafeUnpin for InterconnectLocationRegionInfo
impl UnwindSafe for InterconnectLocationRegionInfo
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request