#[non_exhaustive]pub struct AutoRollbackConfiguration {
pub enabled: bool,
pub events: Option<Vec<AutoRollbackEvent>>,
}
Expand description
Information about a configuration for automatically rolling back to a previous version of an application revision when a deployment is not completed successfully.
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.enabled: bool
Indicates whether a defined automatic rollback configuration is currently enabled.
events: Option<Vec<AutoRollbackEvent>>
The event type or types that trigger a rollback.
Implementations§
source§impl AutoRollbackConfiguration
impl AutoRollbackConfiguration
sourcepub fn enabled(&self) -> bool
pub fn enabled(&self) -> bool
Indicates whether a defined automatic rollback configuration is currently enabled.
sourcepub fn events(&self) -> &[AutoRollbackEvent]
pub fn events(&self) -> &[AutoRollbackEvent]
The event type or types that trigger a rollback.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .events.is_none()
.
source§impl AutoRollbackConfiguration
impl AutoRollbackConfiguration
sourcepub fn builder() -> AutoRollbackConfigurationBuilder
pub fn builder() -> AutoRollbackConfigurationBuilder
Creates a new builder-style object to manufacture AutoRollbackConfiguration
.
Trait Implementations§
source§impl Clone for AutoRollbackConfiguration
impl Clone for AutoRollbackConfiguration
source§fn clone(&self) -> AutoRollbackConfiguration
fn clone(&self) -> AutoRollbackConfiguration
Returns a copy 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 AutoRollbackConfiguration
impl Debug for AutoRollbackConfiguration
source§impl PartialEq for AutoRollbackConfiguration
impl PartialEq for AutoRollbackConfiguration
source§fn eq(&self, other: &AutoRollbackConfiguration) -> bool
fn eq(&self, other: &AutoRollbackConfiguration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AutoRollbackConfiguration
Auto Trait Implementations§
impl RefUnwindSafe for AutoRollbackConfiguration
impl Send for AutoRollbackConfiguration
impl Sync for AutoRollbackConfiguration
impl Unpin for AutoRollbackConfiguration
impl UnwindSafe for AutoRollbackConfiguration
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
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>
Creates a shared type from an unshared type.