#[non_exhaustive]pub struct InterconnectGroupsCreateMembers {
pub intent_mismatch_behavior: Option<IntentMismatchBehavior>,
pub interconnects: Vec<InterconnectGroupsCreateMembersInterconnectInput>,
pub template_interconnect: Option<InterconnectGroupsCreateMembersInterconnectInput>,
/* private fields */
}Available on crate feature
interconnect-groups 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.intent_mismatch_behavior: Option<IntentMismatchBehavior>How to behave when configured.topologyCapability.supportedSLA would not equal intent.topologyCapability after this call.
interconnects: Vec<InterconnectGroupsCreateMembersInterconnectInput>§template_interconnect: Option<InterconnectGroupsCreateMembersInterconnectInput>Parameters for the Interconnects to create.
Implementations§
Source§impl InterconnectGroupsCreateMembers
impl InterconnectGroupsCreateMembers
pub fn new() -> Self
Sourcepub fn set_intent_mismatch_behavior<T>(self, v: T) -> Selfwhere
T: Into<IntentMismatchBehavior>,
pub fn set_intent_mismatch_behavior<T>(self, v: T) -> Selfwhere
T: Into<IntentMismatchBehavior>,
Sets the value of intent_mismatch_behavior.
§Example
ⓘ
use google_cloud_compute_v1::model::interconnect_groups_create_members::IntentMismatchBehavior;
let x0 = InterconnectGroupsCreateMembers::new().set_intent_mismatch_behavior(IntentMismatchBehavior::Reject);
let x1 = InterconnectGroupsCreateMembers::new().set_intent_mismatch_behavior(IntentMismatchBehavior::Unspecified);Sourcepub fn set_or_clear_intent_mismatch_behavior<T>(self, v: Option<T>) -> Selfwhere
T: Into<IntentMismatchBehavior>,
pub fn set_or_clear_intent_mismatch_behavior<T>(self, v: Option<T>) -> Selfwhere
T: Into<IntentMismatchBehavior>,
Sets or clears the value of intent_mismatch_behavior.
§Example
ⓘ
use google_cloud_compute_v1::model::interconnect_groups_create_members::IntentMismatchBehavior;
let x0 = InterconnectGroupsCreateMembers::new().set_or_clear_intent_mismatch_behavior(Some(IntentMismatchBehavior::Reject));
let x1 = InterconnectGroupsCreateMembers::new().set_or_clear_intent_mismatch_behavior(Some(IntentMismatchBehavior::Unspecified));
let x_none = InterconnectGroupsCreateMembers::new().set_or_clear_intent_mismatch_behavior(None::<IntentMismatchBehavior>);Sourcepub fn set_interconnects<T, V>(self, v: T) -> Self
pub fn set_interconnects<T, V>(self, v: T) -> Self
Sets the value of interconnects.
§Example
ⓘ
use google_cloud_compute_v1::model::InterconnectGroupsCreateMembersInterconnectInput;
let x = InterconnectGroupsCreateMembers::new()
.set_interconnects([
InterconnectGroupsCreateMembersInterconnectInput::default()/* use setters */,
InterconnectGroupsCreateMembersInterconnectInput::default()/* use (different) setters */,
]);Sourcepub fn set_template_interconnect<T>(self, v: T) -> Self
pub fn set_template_interconnect<T>(self, v: T) -> Self
Sets the value of template_interconnect.
§Example
ⓘ
use google_cloud_compute_v1::model::InterconnectGroupsCreateMembersInterconnectInput;
let x = InterconnectGroupsCreateMembers::new().set_template_interconnect(InterconnectGroupsCreateMembersInterconnectInput::default()/* use setters */);Sourcepub fn set_or_clear_template_interconnect<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_template_interconnect<T>(self, v: Option<T>) -> Self
Sets or clears the value of template_interconnect.
§Example
ⓘ
use google_cloud_compute_v1::model::InterconnectGroupsCreateMembersInterconnectInput;
let x = InterconnectGroupsCreateMembers::new().set_or_clear_template_interconnect(Some(InterconnectGroupsCreateMembersInterconnectInput::default()/* use setters */));
let x = InterconnectGroupsCreateMembers::new().set_or_clear_template_interconnect(None::<InterconnectGroupsCreateMembersInterconnectInput>);Trait Implementations§
Source§impl Clone for InterconnectGroupsCreateMembers
impl Clone for InterconnectGroupsCreateMembers
Source§fn clone(&self) -> InterconnectGroupsCreateMembers
fn clone(&self) -> InterconnectGroupsCreateMembers
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 InterconnectGroupsCreateMembers
impl Default for InterconnectGroupsCreateMembers
Source§fn default() -> InterconnectGroupsCreateMembers
fn default() -> InterconnectGroupsCreateMembers
Returns the “default value” for a type. Read more
Source§impl PartialEq for InterconnectGroupsCreateMembers
impl PartialEq for InterconnectGroupsCreateMembers
Source§fn eq(&self, other: &InterconnectGroupsCreateMembers) -> bool
fn eq(&self, other: &InterconnectGroupsCreateMembers) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InterconnectGroupsCreateMembers
Auto Trait Implementations§
impl Freeze for InterconnectGroupsCreateMembers
impl RefUnwindSafe for InterconnectGroupsCreateMembers
impl Send for InterconnectGroupsCreateMembers
impl Sync for InterconnectGroupsCreateMembers
impl Unpin for InterconnectGroupsCreateMembers
impl UnwindSafe for InterconnectGroupsCreateMembers
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