#[non_exhaustive]pub struct RegionInstanceGroupsListInstancesRequest {
pub instance_state: Option<InstanceState>,
pub port_name: Option<String>,
/* private fields */
}Available on crate feature
region-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>Instances in which state should be returned. Valid options are: ‘ALL’, ‘RUNNING’. By default, it lists all instances.
port_name: Option<String>Name of port user is interested in. It is optional. If it is set, only information about this ports will be returned. If it is not set, all the named ports will be returned. Always lists all instances.
Implementations§
Source§impl RegionInstanceGroupsListInstancesRequest
impl RegionInstanceGroupsListInstancesRequest
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::region_instance_groups_list_instances_request::InstanceState;
let x0 = RegionInstanceGroupsListInstancesRequest::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::region_instance_groups_list_instances_request::InstanceState;
let x0 = RegionInstanceGroupsListInstancesRequest::new().set_or_clear_instance_state(Some(InstanceState::Running));
let x_none = RegionInstanceGroupsListInstancesRequest::new().set_or_clear_instance_state(None::<InstanceState>);Sourcepub fn set_port_name<T>(self, v: T) -> Self
pub fn set_port_name<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_port_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_port_name<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for RegionInstanceGroupsListInstancesRequest
impl Clone for RegionInstanceGroupsListInstancesRequest
Source§fn clone(&self) -> RegionInstanceGroupsListInstancesRequest
fn clone(&self) -> RegionInstanceGroupsListInstancesRequest
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 RegionInstanceGroupsListInstancesRequest
impl Default for RegionInstanceGroupsListInstancesRequest
Source§fn default() -> RegionInstanceGroupsListInstancesRequest
fn default() -> RegionInstanceGroupsListInstancesRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for RegionInstanceGroupsListInstancesRequest
impl PartialEq for RegionInstanceGroupsListInstancesRequest
Source§fn eq(&self, other: &RegionInstanceGroupsListInstancesRequest) -> bool
fn eq(&self, other: &RegionInstanceGroupsListInstancesRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RegionInstanceGroupsListInstancesRequest
Auto Trait Implementations§
impl Freeze for RegionInstanceGroupsListInstancesRequest
impl RefUnwindSafe for RegionInstanceGroupsListInstancesRequest
impl Send for RegionInstanceGroupsListInstancesRequest
impl Sync for RegionInstanceGroupsListInstancesRequest
impl Unpin for RegionInstanceGroupsListInstancesRequest
impl UnwindSafe for RegionInstanceGroupsListInstancesRequest
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