#[non_exhaustive]pub struct InterconnectGroupsOperationalStatusInterconnectStatus {
pub admin_enabled: Option<bool>,
pub diagnostics: Option<InterconnectDiagnostics>,
pub interconnect: Option<String>,
pub is_active: Option<IsActive>,
/* private fields */
}Available on crate feature
interconnect-groups only.Expand description
The status of one Interconnect in the group. The order is arbitrary.
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.admin_enabled: Option<bool>Output only. Whether the Interconnect is enabled.
diagnostics: Option<InterconnectDiagnostics>Output only. The diagnostics of the Interconnect, as returned by the existing get-diagnostics method.
interconnect: Option<String>Output only. The URL of the Interconnect being described.
is_active: Option<IsActive>Output only. Whether this interconnect is participating in the redundant configuration.
Implementations§
Source§impl InterconnectGroupsOperationalStatusInterconnectStatus
impl InterconnectGroupsOperationalStatusInterconnectStatus
pub fn new() -> Self
Sourcepub fn set_admin_enabled<T>(self, v: T) -> Self
pub fn set_admin_enabled<T>(self, v: T) -> Self
Sets the value of admin_enabled.
§Example
ⓘ
let x = InterconnectGroupsOperationalStatusInterconnectStatus::new().set_admin_enabled(true);Sourcepub fn set_or_clear_admin_enabled<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_admin_enabled<T>(self, v: Option<T>) -> Self
Sets or clears the value of admin_enabled.
§Example
ⓘ
let x = InterconnectGroupsOperationalStatusInterconnectStatus::new().set_or_clear_admin_enabled(Some(false));
let x = InterconnectGroupsOperationalStatusInterconnectStatus::new().set_or_clear_admin_enabled(None::<bool>);Sourcepub fn set_diagnostics<T>(self, v: T) -> Selfwhere
T: Into<InterconnectDiagnostics>,
pub fn set_diagnostics<T>(self, v: T) -> Selfwhere
T: Into<InterconnectDiagnostics>,
Sets the value of diagnostics.
§Example
ⓘ
use google_cloud_compute_v1::model::InterconnectDiagnostics;
let x = InterconnectGroupsOperationalStatusInterconnectStatus::new().set_diagnostics(InterconnectDiagnostics::default()/* use setters */);Sourcepub fn set_or_clear_diagnostics<T>(self, v: Option<T>) -> Selfwhere
T: Into<InterconnectDiagnostics>,
pub fn set_or_clear_diagnostics<T>(self, v: Option<T>) -> Selfwhere
T: Into<InterconnectDiagnostics>,
Sets or clears the value of diagnostics.
§Example
ⓘ
use google_cloud_compute_v1::model::InterconnectDiagnostics;
let x = InterconnectGroupsOperationalStatusInterconnectStatus::new().set_or_clear_diagnostics(Some(InterconnectDiagnostics::default()/* use setters */));
let x = InterconnectGroupsOperationalStatusInterconnectStatus::new().set_or_clear_diagnostics(None::<InterconnectDiagnostics>);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 = InterconnectGroupsOperationalStatusInterconnectStatus::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 = InterconnectGroupsOperationalStatusInterconnectStatus::new().set_or_clear_interconnect(Some("example"));
let x = InterconnectGroupsOperationalStatusInterconnectStatus::new().set_or_clear_interconnect(None::<String>);Sourcepub fn set_is_active<T>(self, v: T) -> Self
pub fn set_is_active<T>(self, v: T) -> Self
Sets the value of is_active.
§Example
ⓘ
use google_cloud_compute_v1::model::interconnect_groups_operational_status_interconnect_status::IsActive;
let x0 = InterconnectGroupsOperationalStatusInterconnectStatus::new().set_is_active(IsActive::Inactive);
let x1 = InterconnectGroupsOperationalStatusInterconnectStatus::new().set_is_active(IsActive::Unspecified);Sourcepub fn set_or_clear_is_active<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_is_active<T>(self, v: Option<T>) -> Self
Sets or clears the value of is_active.
§Example
ⓘ
use google_cloud_compute_v1::model::interconnect_groups_operational_status_interconnect_status::IsActive;
let x0 = InterconnectGroupsOperationalStatusInterconnectStatus::new().set_or_clear_is_active(Some(IsActive::Inactive));
let x1 = InterconnectGroupsOperationalStatusInterconnectStatus::new().set_or_clear_is_active(Some(IsActive::Unspecified));
let x_none = InterconnectGroupsOperationalStatusInterconnectStatus::new().set_or_clear_is_active(None::<IsActive>);Trait Implementations§
Source§impl Clone for InterconnectGroupsOperationalStatusInterconnectStatus
impl Clone for InterconnectGroupsOperationalStatusInterconnectStatus
Source§fn clone(&self) -> InterconnectGroupsOperationalStatusInterconnectStatus
fn clone(&self) -> InterconnectGroupsOperationalStatusInterconnectStatus
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 InterconnectGroupsOperationalStatusInterconnectStatus
impl Default for InterconnectGroupsOperationalStatusInterconnectStatus
Source§fn default() -> InterconnectGroupsOperationalStatusInterconnectStatus
fn default() -> InterconnectGroupsOperationalStatusInterconnectStatus
Returns the “default value” for a type. Read more
Source§impl PartialEq for InterconnectGroupsOperationalStatusInterconnectStatus
impl PartialEq for InterconnectGroupsOperationalStatusInterconnectStatus
Source§fn eq(
&self,
other: &InterconnectGroupsOperationalStatusInterconnectStatus,
) -> bool
fn eq( &self, other: &InterconnectGroupsOperationalStatusInterconnectStatus, ) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InterconnectGroupsOperationalStatusInterconnectStatus
Auto Trait Implementations§
impl Freeze for InterconnectGroupsOperationalStatusInterconnectStatus
impl RefUnwindSafe for InterconnectGroupsOperationalStatusInterconnectStatus
impl Send for InterconnectGroupsOperationalStatusInterconnectStatus
impl Sync for InterconnectGroupsOperationalStatusInterconnectStatus
impl Unpin for InterconnectGroupsOperationalStatusInterconnectStatus
impl UnwindSafe for InterconnectGroupsOperationalStatusInterconnectStatus
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