#[non_exhaustive]pub struct AutoScalingPolicyStateChangeReason {
pub code: Option<AutoScalingPolicyStateChangeReasonCode>,
pub message: Option<String>,
}Expand description
The reason for an AutoScalingPolicyStatus change.
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.code: Option<AutoScalingPolicyStateChangeReasonCode>The code indicating the reason for the change in status.USER_REQUEST indicates that the scaling policy status was changed by a user. PROVISION_FAILURE indicates that the status change was because the policy failed to provision. CLEANUP_FAILURE indicates an error.
message: Option<String>A friendly, more verbose message that accompanies an automatic scaling policy state change.
Implementations§
source§impl AutoScalingPolicyStateChangeReason
impl AutoScalingPolicyStateChangeReason
sourcepub fn code(&self) -> Option<&AutoScalingPolicyStateChangeReasonCode>
pub fn code(&self) -> Option<&AutoScalingPolicyStateChangeReasonCode>
The code indicating the reason for the change in status.USER_REQUEST indicates that the scaling policy status was changed by a user. PROVISION_FAILURE indicates that the status change was because the policy failed to provision. CLEANUP_FAILURE indicates an error.
source§impl AutoScalingPolicyStateChangeReason
impl AutoScalingPolicyStateChangeReason
sourcepub fn builder() -> AutoScalingPolicyStateChangeReasonBuilder
pub fn builder() -> AutoScalingPolicyStateChangeReasonBuilder
Creates a new builder-style object to manufacture AutoScalingPolicyStateChangeReason.
Trait Implementations§
source§impl Clone for AutoScalingPolicyStateChangeReason
impl Clone for AutoScalingPolicyStateChangeReason
source§fn clone(&self) -> AutoScalingPolicyStateChangeReason
fn clone(&self) -> AutoScalingPolicyStateChangeReason
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for AutoScalingPolicyStateChangeReason
impl PartialEq for AutoScalingPolicyStateChangeReason
source§fn eq(&self, other: &AutoScalingPolicyStateChangeReason) -> bool
fn eq(&self, other: &AutoScalingPolicyStateChangeReason) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AutoScalingPolicyStateChangeReason
Auto Trait Implementations§
impl Freeze for AutoScalingPolicyStateChangeReason
impl RefUnwindSafe for AutoScalingPolicyStateChangeReason
impl Send for AutoScalingPolicyStateChangeReason
impl Sync for AutoScalingPolicyStateChangeReason
impl Unpin for AutoScalingPolicyStateChangeReason
impl UnwindSafe for AutoScalingPolicyStateChangeReason
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more