#[non_exhaustive]pub struct RepairPhase {
pub repair_phase: Option<RepairPhase>,
/* private fields */
}
Expand description
RepairPhase tracks the repair attempts that have been made for
each RepairPhaseConfig
specified in the Automation
resource.
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.repair_phase: Option<RepairPhase>
The RepairPhase
type and the information for that type.
Implementations§
Source§impl RepairPhase
impl RepairPhase
pub fn new() -> Self
Sourcepub fn set_repair_phase<T: Into<Option<RepairPhase>>>(self, v: T) -> Self
pub fn set_repair_phase<T: Into<Option<RepairPhase>>>(self, v: T) -> Self
Sets the value of repair_phase.
Note that all the setters affecting repair_phase
are mutually
exclusive.
Sourcepub fn retry(&self) -> Option<&Box<RetryPhase>>
pub fn retry(&self) -> Option<&Box<RetryPhase>>
The value of repair_phase
if it holds a Retry
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_retry<T: Into<Box<RetryPhase>>>(self, v: T) -> Self
pub fn set_retry<T: Into<Box<RetryPhase>>>(self, v: T) -> Self
Sets the value of repair_phase
to hold a Retry
.
Note that all the setters affecting repair_phase
are
mutually exclusive.
Sourcepub fn rollback(&self) -> Option<&Box<RollbackAttempt>>
pub fn rollback(&self) -> Option<&Box<RollbackAttempt>>
The value of repair_phase
if it holds a Rollback
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_rollback<T: Into<Box<RollbackAttempt>>>(self, v: T) -> Self
pub fn set_rollback<T: Into<Box<RollbackAttempt>>>(self, v: T) -> Self
Sets the value of repair_phase
to hold a Rollback
.
Note that all the setters affecting repair_phase
are
mutually exclusive.
Trait Implementations§
Source§impl Clone for RepairPhase
impl Clone for RepairPhase
Source§fn clone(&self) -> RepairPhase
fn clone(&self) -> RepairPhase
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 RepairPhase
impl Debug for RepairPhase
Source§impl Default for RepairPhase
impl Default for RepairPhase
Source§fn default() -> RepairPhase
fn default() -> RepairPhase
Returns the “default value” for a type. Read more
Source§impl Message for RepairPhase
impl Message for RepairPhase
Source§impl PartialEq for RepairPhase
impl PartialEq for RepairPhase
impl StructuralPartialEq for RepairPhase
Auto Trait Implementations§
impl Freeze for RepairPhase
impl RefUnwindSafe for RepairPhase
impl Send for RepairPhase
impl Sync for RepairPhase
impl Unpin for RepairPhase
impl UnwindSafe for RepairPhase
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