#[non_exhaustive]pub struct InstanceGroupManagerResizeRequestStatus {
pub error: Option<Error>,
pub last_attempt: Option<InstanceGroupManagerResizeRequestStatusLastAttempt>,
/* private fields */
}instance-group-manager-resize-requests or region-instance-group-manager-resize-requests only.Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.error: Option<Error>Output only. Fatal errors encountered during the queueing or provisioning phases of the ResizeRequest that caused the transition to the FAILED state. Contrary to the last_attempt errors, this field is final and errors are never removed from here, as the ResizeRequest is not going to retry.
last_attempt: Option<InstanceGroupManagerResizeRequestStatusLastAttempt>Output only. Information about the last attempt to fulfill the request. The value is temporary since the ResizeRequest can retry, as long as it’s still active and the last attempt value can either be cleared or replaced with a different error. Since ResizeRequest retries infrequently, the value may be stale and no longer show an active problem. The value is cleared when ResizeRequest transitions to the final state (becomes inactive). If the final state is FAILED the error describing it will be stored in the “error” field only.
Implementations§
Source§impl InstanceGroupManagerResizeRequestStatus
impl InstanceGroupManagerResizeRequestStatus
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::instance_group_manager_resize_request_status::Error;
let x = InstanceGroupManagerResizeRequestStatus::new().set_or_clear_error(Some(Error::default()/* use setters */));
let x = InstanceGroupManagerResizeRequestStatus::new().set_or_clear_error(None::<Error>);Sourcepub fn set_last_attempt<T>(self, v: T) -> Self
pub fn set_last_attempt<T>(self, v: T) -> Self
Sets the value of last_attempt.
§Example
use google_cloud_compute_v1::model::InstanceGroupManagerResizeRequestStatusLastAttempt;
let x = InstanceGroupManagerResizeRequestStatus::new().set_last_attempt(InstanceGroupManagerResizeRequestStatusLastAttempt::default()/* use setters */);Sourcepub fn set_or_clear_last_attempt<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_last_attempt<T>(self, v: Option<T>) -> Self
Sets or clears the value of last_attempt.
§Example
use google_cloud_compute_v1::model::InstanceGroupManagerResizeRequestStatusLastAttempt;
let x = InstanceGroupManagerResizeRequestStatus::new().set_or_clear_last_attempt(Some(InstanceGroupManagerResizeRequestStatusLastAttempt::default()/* use setters */));
let x = InstanceGroupManagerResizeRequestStatus::new().set_or_clear_last_attempt(None::<InstanceGroupManagerResizeRequestStatusLastAttempt>);Trait Implementations§
Source§impl Clone for InstanceGroupManagerResizeRequestStatus
impl Clone for InstanceGroupManagerResizeRequestStatus
Source§fn clone(&self) -> InstanceGroupManagerResizeRequestStatus
fn clone(&self) -> InstanceGroupManagerResizeRequestStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for InstanceGroupManagerResizeRequestStatus
impl Default for InstanceGroupManagerResizeRequestStatus
Source§fn default() -> InstanceGroupManagerResizeRequestStatus
fn default() -> InstanceGroupManagerResizeRequestStatus
impl StructuralPartialEq for InstanceGroupManagerResizeRequestStatus
Auto Trait Implementations§
impl Freeze for InstanceGroupManagerResizeRequestStatus
impl RefUnwindSafe for InstanceGroupManagerResizeRequestStatus
impl Send for InstanceGroupManagerResizeRequestStatus
impl Sync for InstanceGroupManagerResizeRequestStatus
impl Unpin for InstanceGroupManagerResizeRequestStatus
impl UnsafeUnpin for InstanceGroupManagerResizeRequestStatus
impl UnwindSafe for InstanceGroupManagerResizeRequestStatus
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request