pub struct ConsentPurpose(pub String);Expand description
A purpose for which consent may be granted (e.g., “analytics”, “marketing”).
Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Source§impl Clone for ConsentPurpose
impl Clone for ConsentPurpose
Source§fn clone(&self) -> ConsentPurpose
fn clone(&self) -> ConsentPurpose
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 ConsentPurpose
impl Debug for ConsentPurpose
Source§impl Hash for ConsentPurpose
impl Hash for ConsentPurpose
Source§impl PartialEq for ConsentPurpose
impl PartialEq for ConsentPurpose
Source§fn eq(&self, other: &ConsentPurpose) -> bool
fn eq(&self, other: &ConsentPurpose) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConsentPurpose
impl Serialize for ConsentPurpose
impl Eq for ConsentPurpose
impl StructuralPartialEq for ConsentPurpose
Auto Trait Implementations§
impl Freeze for ConsentPurpose
impl RefUnwindSafe for ConsentPurpose
impl Send for ConsentPurpose
impl Sync for ConsentPurpose
impl Unpin for ConsentPurpose
impl UnsafeUnpin for ConsentPurpose
impl UnwindSafe for ConsentPurpose
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