pub enum Confirmation {
Missing,
Confirmed,
}Expand description
Whether a destructive operation has been explicitly confirmed by the caller.
Variants§
Missing
No confirmation was provided (the default).
Confirmed
The caller explicitly confirmed the operation.
Implementations§
Source§impl Confirmation
impl Confirmation
Sourcepub fn is_confirmed(self) -> bool
pub fn is_confirmed(self) -> bool
Returns true when the operation has been confirmed.
Trait Implementations§
Source§impl Clone for Confirmation
impl Clone for Confirmation
Source§fn clone(&self) -> Confirmation
fn clone(&self) -> Confirmation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Confirmation
impl Debug for Confirmation
Source§impl Default for Confirmation
impl Default for Confirmation
Source§fn default() -> Confirmation
fn default() -> Confirmation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Confirmation
impl<'de> Deserialize<'de> for Confirmation
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 PartialEq for Confirmation
impl PartialEq for Confirmation
Source§fn eq(&self, other: &Confirmation) -> bool
fn eq(&self, other: &Confirmation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Confirmation
impl Serialize for Confirmation
impl Copy for Confirmation
impl Eq for Confirmation
impl StructuralPartialEq for Confirmation
Auto Trait Implementations§
impl Freeze for Confirmation
impl RefUnwindSafe for Confirmation
impl Send for Confirmation
impl Sync for Confirmation
impl Unpin for Confirmation
impl UnsafeUnpin for Confirmation
impl UnwindSafe for Confirmation
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.