#[non_exhaustive]pub struct ManagedInstanceLastAttempt {
pub errors: Option<Errors>,
/* 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.errors: Option<Errors>Output only. [Output Only] Encountered errors during the last attempt to create or delete the instance.
Implementations§
Source§impl ManagedInstanceLastAttempt
impl ManagedInstanceLastAttempt
pub fn new() -> Self
Sourcepub fn set_errors<T>(self, v: T) -> Self
pub fn set_errors<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_errors<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_errors<T>(self, v: Option<T>) -> Self
Sets or clears the value of errors.
§Example
ⓘ
use google_cloud_compute_v1::model::managed_instance_last_attempt::Errors;
let x = ManagedInstanceLastAttempt::new().set_or_clear_errors(Some(Errors::default()/* use setters */));
let x = ManagedInstanceLastAttempt::new().set_or_clear_errors(None::<Errors>);Trait Implementations§
Source§impl Clone for ManagedInstanceLastAttempt
impl Clone for ManagedInstanceLastAttempt
Source§fn clone(&self) -> ManagedInstanceLastAttempt
fn clone(&self) -> ManagedInstanceLastAttempt
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 ManagedInstanceLastAttempt
impl Debug for ManagedInstanceLastAttempt
Source§impl Default for ManagedInstanceLastAttempt
impl Default for ManagedInstanceLastAttempt
Source§fn default() -> ManagedInstanceLastAttempt
fn default() -> ManagedInstanceLastAttempt
Returns the “default value” for a type. Read more
Source§impl Message for ManagedInstanceLastAttempt
impl Message for ManagedInstanceLastAttempt
impl StructuralPartialEq for ManagedInstanceLastAttempt
Auto Trait Implementations§
impl Freeze for ManagedInstanceLastAttempt
impl RefUnwindSafe for ManagedInstanceLastAttempt
impl Send for ManagedInstanceLastAttempt
impl Sync for ManagedInstanceLastAttempt
impl Unpin for ManagedInstanceLastAttempt
impl UnwindSafe for ManagedInstanceLastAttempt
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