#[non_exhaustive]pub struct InterconnectDiagnosticsLinkLACPStatus {
pub google_system_id: Option<String>,
pub neighbor_system_id: Option<String>,
pub state: Option<State>,
/* private fields */
}Available on crate features
interconnect-groups or interconnects only.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.google_system_id: Option<String>System ID of the port on Google’s side of the LACP exchange.
neighbor_system_id: Option<String>System ID of the port on the neighbor’s side of the LACP exchange.
state: Option<State>The state of a LACP link, which can take one of the following values:
- ACTIVE: The link is configured and active within the bundle.
- DETACHED: The link is not configured within the bundle. This means that the rest of the object should be empty.
Implementations§
Source§impl InterconnectDiagnosticsLinkLACPStatus
impl InterconnectDiagnosticsLinkLACPStatus
pub fn new() -> Self
Sourcepub fn set_google_system_id<T>(self, v: T) -> Self
pub fn set_google_system_id<T>(self, v: T) -> Self
Sets the value of google_system_id.
§Example
ⓘ
let x = InterconnectDiagnosticsLinkLACPStatus::new().set_google_system_id("example");Sourcepub fn set_or_clear_google_system_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_google_system_id<T>(self, v: Option<T>) -> Self
Sets or clears the value of google_system_id.
§Example
ⓘ
let x = InterconnectDiagnosticsLinkLACPStatus::new().set_or_clear_google_system_id(Some("example"));
let x = InterconnectDiagnosticsLinkLACPStatus::new().set_or_clear_google_system_id(None::<String>);Sourcepub fn set_neighbor_system_id<T>(self, v: T) -> Self
pub fn set_neighbor_system_id<T>(self, v: T) -> Self
Sets the value of neighbor_system_id.
§Example
ⓘ
let x = InterconnectDiagnosticsLinkLACPStatus::new().set_neighbor_system_id("example");Sourcepub fn set_or_clear_neighbor_system_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_neighbor_system_id<T>(self, v: Option<T>) -> Self
Sets or clears the value of neighbor_system_id.
§Example
ⓘ
let x = InterconnectDiagnosticsLinkLACPStatus::new().set_or_clear_neighbor_system_id(Some("example"));
let x = InterconnectDiagnosticsLinkLACPStatus::new().set_or_clear_neighbor_system_id(None::<String>);Sourcepub fn set_or_clear_state<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_state<T>(self, v: Option<T>) -> Self
Sets or clears the value of state.
§Example
ⓘ
use google_cloud_compute_v1::model::interconnect_diagnostics_link_lacp_status::State;
let x0 = InterconnectDiagnosticsLinkLACPStatus::new().set_or_clear_state(Some(State::Detached));
let x_none = InterconnectDiagnosticsLinkLACPStatus::new().set_or_clear_state(None::<State>);Trait Implementations§
Source§impl Clone for InterconnectDiagnosticsLinkLACPStatus
impl Clone for InterconnectDiagnosticsLinkLACPStatus
Source§fn clone(&self) -> InterconnectDiagnosticsLinkLACPStatus
fn clone(&self) -> InterconnectDiagnosticsLinkLACPStatus
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 InterconnectDiagnosticsLinkLACPStatus
impl Default for InterconnectDiagnosticsLinkLACPStatus
Source§fn default() -> InterconnectDiagnosticsLinkLACPStatus
fn default() -> InterconnectDiagnosticsLinkLACPStatus
Returns the “default value” for a type. Read more
Source§impl PartialEq for InterconnectDiagnosticsLinkLACPStatus
impl PartialEq for InterconnectDiagnosticsLinkLACPStatus
Source§fn eq(&self, other: &InterconnectDiagnosticsLinkLACPStatus) -> bool
fn eq(&self, other: &InterconnectDiagnosticsLinkLACPStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InterconnectDiagnosticsLinkLACPStatus
Auto Trait Implementations§
impl Freeze for InterconnectDiagnosticsLinkLACPStatus
impl RefUnwindSafe for InterconnectDiagnosticsLinkLACPStatus
impl Send for InterconnectDiagnosticsLinkLACPStatus
impl Sync for InterconnectDiagnosticsLinkLACPStatus
impl Unpin for InterconnectDiagnosticsLinkLACPStatus
impl UnwindSafe for InterconnectDiagnosticsLinkLACPStatus
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