pub struct FailureAction(/* private fields */);Expand description
Actions in response to failure of a resource associated with a cluster.
Implementations§
Source§impl FailureAction
impl FailureAction
Sourcepub const FAILURE_ACTION_UNSPECIFIED: FailureAction
pub const FAILURE_ACTION_UNSPECIFIED: FailureAction
When FailureAction is unspecified, failure action defaults to NO_ACTION.
Sourcepub const NO_ACTION: FailureAction
pub const NO_ACTION: FailureAction
Take no action on failure to create a cluster resource. NO_ACTION is the default.
Sourcepub const DELETE: FailureAction
pub const DELETE: FailureAction
Delete the failed cluster resource.
Sourcepub fn as_str_name(&self) -> Cow<'static, str>
pub fn as_str_name(&self) -> Cow<'static, str>
Gets the enum value as a string.
Sourcepub fn from_str_name(name: &str) -> Option<Self>
pub fn from_str_name(name: &str) -> Option<Self>
Creates an enum value from the value name.
Trait Implementations§
Source§impl Clone for FailureAction
impl Clone for FailureAction
Source§fn clone(&self) -> FailureAction
fn clone(&self) -> FailureAction
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 FailureAction
impl Debug for FailureAction
Source§impl Default for FailureAction
impl Default for FailureAction
Source§impl<'de> Deserialize<'de> for FailureAction
impl<'de> Deserialize<'de> for FailureAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<i32> for FailureAction
impl From<i32> for FailureAction
Source§impl PartialEq for FailureAction
impl PartialEq for FailureAction
Source§impl Serialize for FailureAction
impl Serialize for FailureAction
impl StructuralPartialEq for FailureAction
Auto Trait Implementations§
impl Freeze for FailureAction
impl RefUnwindSafe for FailureAction
impl Send for FailureAction
impl Sync for FailureAction
impl Unpin for FailureAction
impl UnwindSafe for FailureAction
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