#[non_exhaustive]pub enum ConsentState {
Granted,
Denied,
Withdrawn,
NotCollected,
}Expand description
The current state of consent for a given purpose.
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.
Granted
Consent has been explicitly granted.
Denied
Consent has been explicitly denied.
Withdrawn
Consent was previously granted but has been withdrawn.
NotCollected
Consent has not yet been collected for this purpose.
Trait Implementations§
Source§impl Clone for ConsentState
impl Clone for ConsentState
Source§fn clone(&self) -> ConsentState
fn clone(&self) -> ConsentState
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 ConsentState
impl Debug for ConsentState
Source§impl Hash for ConsentState
impl Hash for ConsentState
Source§impl PartialEq for ConsentState
impl PartialEq for ConsentState
Source§fn eq(&self, other: &ConsentState) -> bool
fn eq(&self, other: &ConsentState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConsentState
impl Serialize for ConsentState
impl Copy for ConsentState
impl Eq for ConsentState
impl StructuralPartialEq for ConsentState
Auto Trait Implementations§
impl Freeze for ConsentState
impl RefUnwindSafe for ConsentState
impl Send for ConsentState
impl Sync for ConsentState
impl Unpin for ConsentState
impl UnsafeUnpin for ConsentState
impl UnwindSafe for ConsentState
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