#[non_exhaustive]pub enum ConsentDecision {
Approved,
Declined,
Unknown(String),
}Expand description
Only an explicit approved answer can approve; future decisions fail closed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl ConsentDecision
impl ConsentDecision
pub fn is_approved(&self) -> bool
Trait Implementations§
Source§impl Clone for ConsentDecision
impl Clone for ConsentDecision
Source§impl Debug for ConsentDecision
impl Debug for ConsentDecision
Source§impl<'de> Deserialize<'de> for ConsentDecision
impl<'de> Deserialize<'de> for ConsentDecision
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
impl Eq for ConsentDecision
Source§impl From<ConsentDecision> for String
impl From<ConsentDecision> for String
Source§fn from(value: ConsentDecision) -> Self
fn from(value: ConsentDecision) -> Self
Converts to this type from the input type.
Source§impl From<String> for ConsentDecision
impl From<String> for ConsentDecision
Source§impl PartialEq for ConsentDecision
impl PartialEq for ConsentDecision
Source§impl Serialize for ConsentDecision
impl Serialize for ConsentDecision
impl StructuralPartialEq for ConsentDecision
Auto Trait Implementations§
impl Forget for ConsentDecision
impl Freeze for ConsentDecision
impl Move for ConsentDecision
impl RefUnwindSafe for ConsentDecision
impl Send for ConsentDecision
impl Sync for ConsentDecision
impl Unpin for ConsentDecision
impl UnsafeUnpin for ConsentDecision
impl UnwindSafe for ConsentDecision
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