#[non_exhaustive]pub struct AssociationDetails {
pub name: String,
pub network: String,
pub state: State,
/* private fields */
}Expand description
The endpoint group’s view of a connected association.
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.name: StringOutput only. The connected association’s resource name, for example:
projects/123456789/locations/global/interceptEndpointGroupAssociations/my-ega.
See https://google.aip.dev/124.
network: StringOutput only. The associated network, for example: projects/123456789/global/networks/my-network. See https://google.aip.dev/124.
state: StateOutput only. Most recent known state of the association.
Implementations§
Source§impl AssociationDetails
impl AssociationDetails
pub fn new() -> Self
Sourcepub fn set_network<T: Into<String>>(self, v: T) -> Self
pub fn set_network<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_state<T: Into<State>>(self, v: T) -> Self
pub fn set_state<T: Into<State>>(self, v: T) -> Self
Sets the value of state.
§Example
ⓘ
use google_cloud_networksecurity_v1::model::intercept_endpoint_group_association::State;
let x0 = AssociationDetails::new().set_state(State::Active);
let x1 = AssociationDetails::new().set_state(State::Creating);
let x2 = AssociationDetails::new().set_state(State::Deleting);Trait Implementations§
Source§impl Clone for AssociationDetails
impl Clone for AssociationDetails
Source§fn clone(&self) -> AssociationDetails
fn clone(&self) -> AssociationDetails
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 Debug for AssociationDetails
impl Debug for AssociationDetails
Source§impl Default for AssociationDetails
impl Default for AssociationDetails
Source§fn default() -> AssociationDetails
fn default() -> AssociationDetails
Returns the “default value” for a type. Read more
Source§impl Message for AssociationDetails
impl Message for AssociationDetails
Source§impl PartialEq for AssociationDetails
impl PartialEq for AssociationDetails
impl StructuralPartialEq for AssociationDetails
Auto Trait Implementations§
impl Freeze for AssociationDetails
impl RefUnwindSafe for AssociationDetails
impl Send for AssociationDetails
impl Sync for AssociationDetails
impl Unpin for AssociationDetails
impl UnsafeUnpin for AssociationDetails
impl UnwindSafe for AssociationDetails
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