#[non_exhaustive]pub struct GlobalVmExtensionPolicyInstanceSelector {
pub label_selector: Option<GlobalVmExtensionPolicyLabelSelector>,
/* private fields */
}Available on crate feature
global-vm-extension-policies only.Expand description
Selector to target VMs for a zone VM extension policy.
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.label_selector: Option<GlobalVmExtensionPolicyLabelSelector>Optional. Labels within the LabelSelector are OR’d.
Implementations§
Source§impl GlobalVmExtensionPolicyInstanceSelector
impl GlobalVmExtensionPolicyInstanceSelector
Sourcepub fn set_label_selector<T>(self, v: T) -> Selfwhere
T: Into<GlobalVmExtensionPolicyLabelSelector>,
pub fn set_label_selector<T>(self, v: T) -> Selfwhere
T: Into<GlobalVmExtensionPolicyLabelSelector>,
Sets the value of label_selector.
§Example
ⓘ
use google_cloud_compute_v1::model::GlobalVmExtensionPolicyLabelSelector;
let x = GlobalVmExtensionPolicyInstanceSelector::new().set_label_selector(GlobalVmExtensionPolicyLabelSelector::default()/* use setters */);Sourcepub fn set_or_clear_label_selector<T>(self, v: Option<T>) -> Selfwhere
T: Into<GlobalVmExtensionPolicyLabelSelector>,
pub fn set_or_clear_label_selector<T>(self, v: Option<T>) -> Selfwhere
T: Into<GlobalVmExtensionPolicyLabelSelector>,
Sets or clears the value of label_selector.
§Example
ⓘ
use google_cloud_compute_v1::model::GlobalVmExtensionPolicyLabelSelector;
let x = GlobalVmExtensionPolicyInstanceSelector::new().set_or_clear_label_selector(Some(GlobalVmExtensionPolicyLabelSelector::default()/* use setters */));
let x = GlobalVmExtensionPolicyInstanceSelector::new().set_or_clear_label_selector(None::<GlobalVmExtensionPolicyLabelSelector>);Trait Implementations§
Source§impl Clone for GlobalVmExtensionPolicyInstanceSelector
impl Clone for GlobalVmExtensionPolicyInstanceSelector
Source§fn clone(&self) -> GlobalVmExtensionPolicyInstanceSelector
fn clone(&self) -> GlobalVmExtensionPolicyInstanceSelector
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GlobalVmExtensionPolicyInstanceSelector
impl Default for GlobalVmExtensionPolicyInstanceSelector
Source§fn default() -> GlobalVmExtensionPolicyInstanceSelector
fn default() -> GlobalVmExtensionPolicyInstanceSelector
Returns the “default value” for a type. Read more
Source§impl PartialEq for GlobalVmExtensionPolicyInstanceSelector
impl PartialEq for GlobalVmExtensionPolicyInstanceSelector
Source§fn eq(&self, other: &GlobalVmExtensionPolicyInstanceSelector) -> bool
fn eq(&self, other: &GlobalVmExtensionPolicyInstanceSelector) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GlobalVmExtensionPolicyInstanceSelector
Auto Trait Implementations§
impl Freeze for GlobalVmExtensionPolicyInstanceSelector
impl RefUnwindSafe for GlobalVmExtensionPolicyInstanceSelector
impl Send for GlobalVmExtensionPolicyInstanceSelector
impl Sync for GlobalVmExtensionPolicyInstanceSelector
impl Unpin for GlobalVmExtensionPolicyInstanceSelector
impl UnsafeUnpin for GlobalVmExtensionPolicyInstanceSelector
impl UnwindSafe for GlobalVmExtensionPolicyInstanceSelector
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