#[non_exhaustive]pub struct InstanceManagedByIgmErrorInstanceActionDetails {
pub action: Option<Action>,
pub instance: Option<String>,
pub version: Option<ManagedInstanceVersion>,
/* private fields */
}Available on crate features
instance-group-managers or region-instance-group-managers 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.action: Option<Action>Output only. [Output Only] Action that managed instance group was executing on the instance when the error occurred. Possible values:
instance: Option<String>Output only. [Output Only] The URL of the instance. The URL can be set even if the instance has not yet been created.
version: Option<ManagedInstanceVersion>Output only. [Output Only] Version this instance was created from, or was being created from, but the creation failed. Corresponds to one of the versions that were set on the Instance Group Manager resource at the time this instance was being created.
Implementations§
Source§impl InstanceManagedByIgmErrorInstanceActionDetails
impl InstanceManagedByIgmErrorInstanceActionDetails
pub fn new() -> Self
Sourcepub fn set_action<T>(self, v: T) -> Self
pub fn set_action<T>(self, v: T) -> Self
Sets the value of action.
§Example
ⓘ
use google_cloud_compute_v1::model::instance_managed_by_igm_error_instance_action_details::Action;
let x0 = InstanceManagedByIgmErrorInstanceActionDetails::new().set_action(Action::Creating);
let x1 = InstanceManagedByIgmErrorInstanceActionDetails::new().set_action(Action::CreatingWithoutRetries);
let x2 = InstanceManagedByIgmErrorInstanceActionDetails::new().set_action(Action::Deleting);Sourcepub fn set_or_clear_action<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_action<T>(self, v: Option<T>) -> Self
Sets or clears the value of action.
§Example
ⓘ
use google_cloud_compute_v1::model::instance_managed_by_igm_error_instance_action_details::Action;
let x0 = InstanceManagedByIgmErrorInstanceActionDetails::new().set_or_clear_action(Some(Action::Creating));
let x1 = InstanceManagedByIgmErrorInstanceActionDetails::new().set_or_clear_action(Some(Action::CreatingWithoutRetries));
let x2 = InstanceManagedByIgmErrorInstanceActionDetails::new().set_or_clear_action(Some(Action::Deleting));
let x_none = InstanceManagedByIgmErrorInstanceActionDetails::new().set_or_clear_action(None::<Action>);Sourcepub fn set_instance<T>(self, v: T) -> Self
pub fn set_instance<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_instance<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_instance<T>(self, v: Option<T>) -> Self
Sourcepub fn set_version<T>(self, v: T) -> Selfwhere
T: Into<ManagedInstanceVersion>,
pub fn set_version<T>(self, v: T) -> Selfwhere
T: Into<ManagedInstanceVersion>,
Sourcepub fn set_or_clear_version<T>(self, v: Option<T>) -> Selfwhere
T: Into<ManagedInstanceVersion>,
pub fn set_or_clear_version<T>(self, v: Option<T>) -> Selfwhere
T: Into<ManagedInstanceVersion>,
Sets or clears the value of version.
§Example
ⓘ
use google_cloud_compute_v1::model::ManagedInstanceVersion;
let x = InstanceManagedByIgmErrorInstanceActionDetails::new().set_or_clear_version(Some(ManagedInstanceVersion::default()/* use setters */));
let x = InstanceManagedByIgmErrorInstanceActionDetails::new().set_or_clear_version(None::<ManagedInstanceVersion>);Trait Implementations§
Source§impl Clone for InstanceManagedByIgmErrorInstanceActionDetails
impl Clone for InstanceManagedByIgmErrorInstanceActionDetails
Source§fn clone(&self) -> InstanceManagedByIgmErrorInstanceActionDetails
fn clone(&self) -> InstanceManagedByIgmErrorInstanceActionDetails
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 InstanceManagedByIgmErrorInstanceActionDetails
impl Default for InstanceManagedByIgmErrorInstanceActionDetails
Source§fn default() -> InstanceManagedByIgmErrorInstanceActionDetails
fn default() -> InstanceManagedByIgmErrorInstanceActionDetails
Returns the “default value” for a type. Read more
Source§impl PartialEq for InstanceManagedByIgmErrorInstanceActionDetails
impl PartialEq for InstanceManagedByIgmErrorInstanceActionDetails
Source§fn eq(&self, other: &InstanceManagedByIgmErrorInstanceActionDetails) -> bool
fn eq(&self, other: &InstanceManagedByIgmErrorInstanceActionDetails) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InstanceManagedByIgmErrorInstanceActionDetails
Auto Trait Implementations§
impl Freeze for InstanceManagedByIgmErrorInstanceActionDetails
impl RefUnwindSafe for InstanceManagedByIgmErrorInstanceActionDetails
impl Send for InstanceManagedByIgmErrorInstanceActionDetails
impl Sync for InstanceManagedByIgmErrorInstanceActionDetails
impl Unpin for InstanceManagedByIgmErrorInstanceActionDetails
impl UnwindSafe for InstanceManagedByIgmErrorInstanceActionDetails
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