#[non_exhaustive]pub struct InstanceManagedByIgmError {
pub error: Option<InstanceManagedByIgmErrorManagedInstanceError>,
pub instance_action_details: Option<InstanceManagedByIgmErrorInstanceActionDetails>,
pub timestamp: Option<String>,
/* 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.error: Option<InstanceManagedByIgmErrorManagedInstanceError>Output only. [Output Only] Contents of the error.
instance_action_details: Option<InstanceManagedByIgmErrorInstanceActionDetails>Output only. [Output Only] Details of the instance action that triggered this error. May be null, if the error was not caused by an action on an instance. This field is optional.
timestamp: Option<String>Output only. [Output Only] The time that this error occurred. This value is in RFC3339 text format.
Implementations§
Source§impl InstanceManagedByIgmError
impl InstanceManagedByIgmError
pub fn new() -> Self
Sourcepub fn set_or_clear_error<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_error<T>(self, v: Option<T>) -> Self
Sets or clears the value of error.
§Example
ⓘ
use google_cloud_compute_v1::model::InstanceManagedByIgmErrorManagedInstanceError;
let x = InstanceManagedByIgmError::new().set_or_clear_error(Some(InstanceManagedByIgmErrorManagedInstanceError::default()/* use setters */));
let x = InstanceManagedByIgmError::new().set_or_clear_error(None::<InstanceManagedByIgmErrorManagedInstanceError>);Sourcepub fn set_instance_action_details<T>(self, v: T) -> Self
pub fn set_instance_action_details<T>(self, v: T) -> Self
Sets the value of instance_action_details.
§Example
ⓘ
use google_cloud_compute_v1::model::InstanceManagedByIgmErrorInstanceActionDetails;
let x = InstanceManagedByIgmError::new().set_instance_action_details(InstanceManagedByIgmErrorInstanceActionDetails::default()/* use setters */);Sourcepub fn set_or_clear_instance_action_details<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_instance_action_details<T>(self, v: Option<T>) -> Self
Sets or clears the value of instance_action_details.
§Example
ⓘ
use google_cloud_compute_v1::model::InstanceManagedByIgmErrorInstanceActionDetails;
let x = InstanceManagedByIgmError::new().set_or_clear_instance_action_details(Some(InstanceManagedByIgmErrorInstanceActionDetails::default()/* use setters */));
let x = InstanceManagedByIgmError::new().set_or_clear_instance_action_details(None::<InstanceManagedByIgmErrorInstanceActionDetails>);Sourcepub fn set_timestamp<T>(self, v: T) -> Self
pub fn set_timestamp<T>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for InstanceManagedByIgmError
impl Clone for InstanceManagedByIgmError
Source§fn clone(&self) -> InstanceManagedByIgmError
fn clone(&self) -> InstanceManagedByIgmError
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 Debug for InstanceManagedByIgmError
impl Debug for InstanceManagedByIgmError
Source§impl Default for InstanceManagedByIgmError
impl Default for InstanceManagedByIgmError
Source§fn default() -> InstanceManagedByIgmError
fn default() -> InstanceManagedByIgmError
Returns the “default value” for a type. Read more
Source§impl Message for InstanceManagedByIgmError
impl Message for InstanceManagedByIgmError
impl StructuralPartialEq for InstanceManagedByIgmError
Auto Trait Implementations§
impl Freeze for InstanceManagedByIgmError
impl RefUnwindSafe for InstanceManagedByIgmError
impl Send for InstanceManagedByIgmError
impl Sync for InstanceManagedByIgmError
impl Unpin for InstanceManagedByIgmError
impl UnwindSafe for InstanceManagedByIgmError
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