#[non_exhaustive]pub struct WireGroupEndpoint {
pub interconnects: HashMap<String, WireGroupEndpointInterconnect>,
/* private fields */
}Available on crate feature
wire-groups only.Expand description
A logical endpoint for the wire group. An endpoint represents a metro that contains redundant Interconnect connections. A wire group is created between two endpoints.
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.interconnects: HashMap<String, WireGroupEndpointInterconnect>A map that contains the redundant Interconnect connections. Specify key-value pairs for the map as follows:
- Key: an RFC1035 user-specified label.
- Value: an Interconnect object.
Implementations§
Source§impl WireGroupEndpoint
impl WireGroupEndpoint
pub fn new() -> Self
Sourcepub fn set_interconnects<T, K, V>(self, v: T) -> Self
pub fn set_interconnects<T, K, V>(self, v: T) -> Self
Sets the value of interconnects.
§Example
ⓘ
use google_cloud_compute_v1::model::WireGroupEndpointInterconnect;
let x = WireGroupEndpoint::new().set_interconnects([
("key0", WireGroupEndpointInterconnect::default()/* use setters */),
("key1", WireGroupEndpointInterconnect::default()/* use (different) setters */),
]);Trait Implementations§
Source§impl Clone for WireGroupEndpoint
impl Clone for WireGroupEndpoint
Source§fn clone(&self) -> WireGroupEndpoint
fn clone(&self) -> WireGroupEndpoint
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 WireGroupEndpoint
impl Debug for WireGroupEndpoint
Source§impl Default for WireGroupEndpoint
impl Default for WireGroupEndpoint
Source§fn default() -> WireGroupEndpoint
fn default() -> WireGroupEndpoint
Returns the “default value” for a type. Read more
Source§impl Message for WireGroupEndpoint
impl Message for WireGroupEndpoint
Source§impl PartialEq for WireGroupEndpoint
impl PartialEq for WireGroupEndpoint
impl StructuralPartialEq for WireGroupEndpoint
Auto Trait Implementations§
impl Freeze for WireGroupEndpoint
impl RefUnwindSafe for WireGroupEndpoint
impl Send for WireGroupEndpoint
impl Sync for WireGroupEndpoint
impl Unpin for WireGroupEndpoint
impl UnwindSafe for WireGroupEndpoint
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