#[non_exhaustive]pub struct InterconnectGroupIntent {
pub topology_capability: Option<TopologyCapability>,
/* private fields */
}Available on crate feature
interconnect-groups only.Expand description
The user’s intent for this group. This is the only required field besides the name that must be specified on group creation.
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.topology_capability: Option<TopologyCapability>Implementations§
Source§impl InterconnectGroupIntent
impl InterconnectGroupIntent
pub fn new() -> Self
Sourcepub fn set_topology_capability<T>(self, v: T) -> Selfwhere
T: Into<TopologyCapability>,
pub fn set_topology_capability<T>(self, v: T) -> Selfwhere
T: Into<TopologyCapability>,
Sets the value of topology_capability.
§Example
ⓘ
use google_cloud_compute_v1::model::interconnect_group_intent::TopologyCapability;
let x0 = InterconnectGroupIntent::new().set_topology_capability(TopologyCapability::ProductionCritical);
let x1 = InterconnectGroupIntent::new().set_topology_capability(TopologyCapability::ProductionNonCritical);
let x2 = InterconnectGroupIntent::new().set_topology_capability(TopologyCapability::Unspecified);Sourcepub fn set_or_clear_topology_capability<T>(self, v: Option<T>) -> Selfwhere
T: Into<TopologyCapability>,
pub fn set_or_clear_topology_capability<T>(self, v: Option<T>) -> Selfwhere
T: Into<TopologyCapability>,
Sets or clears the value of topology_capability.
§Example
ⓘ
use google_cloud_compute_v1::model::interconnect_group_intent::TopologyCapability;
let x0 = InterconnectGroupIntent::new().set_or_clear_topology_capability(Some(TopologyCapability::ProductionCritical));
let x1 = InterconnectGroupIntent::new().set_or_clear_topology_capability(Some(TopologyCapability::ProductionNonCritical));
let x2 = InterconnectGroupIntent::new().set_or_clear_topology_capability(Some(TopologyCapability::Unspecified));
let x_none = InterconnectGroupIntent::new().set_or_clear_topology_capability(None::<TopologyCapability>);Trait Implementations§
Source§impl Clone for InterconnectGroupIntent
impl Clone for InterconnectGroupIntent
Source§fn clone(&self) -> InterconnectGroupIntent
fn clone(&self) -> InterconnectGroupIntent
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 InterconnectGroupIntent
impl Debug for InterconnectGroupIntent
Source§impl Default for InterconnectGroupIntent
impl Default for InterconnectGroupIntent
Source§fn default() -> InterconnectGroupIntent
fn default() -> InterconnectGroupIntent
Returns the “default value” for a type. Read more
Source§impl Message for InterconnectGroupIntent
impl Message for InterconnectGroupIntent
Source§impl PartialEq for InterconnectGroupIntent
impl PartialEq for InterconnectGroupIntent
impl StructuralPartialEq for InterconnectGroupIntent
Auto Trait Implementations§
impl Freeze for InterconnectGroupIntent
impl RefUnwindSafe for InterconnectGroupIntent
impl Send for InterconnectGroupIntent
impl Sync for InterconnectGroupIntent
impl Unpin for InterconnectGroupIntent
impl UnwindSafe for InterconnectGroupIntent
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