#[non_exhaustive]pub struct InstanceGroupsListInstancesRequest {
pub instance_state: Option<InstanceState>,
/* private fields */
}Available on crate feature
instance-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.instance_state: Option<InstanceState>A filter for the state of the instances in the instance group. Valid options are ALL or RUNNING. If you do not specify this parameter the list includes all instances regardless of their state.
Implementations§
Source§impl InstanceGroupsListInstancesRequest
impl InstanceGroupsListInstancesRequest
pub fn new() -> Self
Sourcepub fn set_instance_state<T>(self, v: T) -> Selfwhere
T: Into<InstanceState>,
pub fn set_instance_state<T>(self, v: T) -> Selfwhere
T: Into<InstanceState>,
Sets the value of instance_state.
§Example
ⓘ
use google_cloud_compute_v1::model::instance_groups_list_instances_request::InstanceState;
let x0 = InstanceGroupsListInstancesRequest::new().set_instance_state(InstanceState::Running);Sourcepub fn set_or_clear_instance_state<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceState>,
pub fn set_or_clear_instance_state<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceState>,
Sets or clears the value of instance_state.
§Example
ⓘ
use google_cloud_compute_v1::model::instance_groups_list_instances_request::InstanceState;
let x0 = InstanceGroupsListInstancesRequest::new().set_or_clear_instance_state(Some(InstanceState::Running));
let x_none = InstanceGroupsListInstancesRequest::new().set_or_clear_instance_state(None::<InstanceState>);Trait Implementations§
Source§impl Clone for InstanceGroupsListInstancesRequest
impl Clone for InstanceGroupsListInstancesRequest
Source§fn clone(&self) -> InstanceGroupsListInstancesRequest
fn clone(&self) -> InstanceGroupsListInstancesRequest
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 InstanceGroupsListInstancesRequest
impl Default for InstanceGroupsListInstancesRequest
Source§fn default() -> InstanceGroupsListInstancesRequest
fn default() -> InstanceGroupsListInstancesRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for InstanceGroupsListInstancesRequest
impl PartialEq for InstanceGroupsListInstancesRequest
Source§fn eq(&self, other: &InstanceGroupsListInstancesRequest) -> bool
fn eq(&self, other: &InstanceGroupsListInstancesRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InstanceGroupsListInstancesRequest
Auto Trait Implementations§
impl Freeze for InstanceGroupsListInstancesRequest
impl RefUnwindSafe for InstanceGroupsListInstancesRequest
impl Send for InstanceGroupsListInstancesRequest
impl Sync for InstanceGroupsListInstancesRequest
impl Unpin for InstanceGroupsListInstancesRequest
impl UnwindSafe for InstanceGroupsListInstancesRequest
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