pub enum ConsentPurpose {
Retrieval,
Validation,
Writeback,
Import,
Export,
Benchmark,
TrustCheck,
}Expand description
Consent purpose for the requested DAG DB action.
Variants§
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 moreimpl Copy for ConsentPurpose
Source§impl Debug for ConsentPurpose
impl Debug for ConsentPurpose
Source§impl<'de> Deserialize<'de> for ConsentPurpose
impl<'de> Deserialize<'de> for ConsentPurpose
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConsentPurpose, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConsentPurpose, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ConsentPurpose
Source§impl Ord for ConsentPurpose
impl Ord for ConsentPurpose
Source§fn cmp(&self, other: &ConsentPurpose) -> Ordering
fn cmp(&self, other: &ConsentPurpose) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
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 PartialOrd for ConsentPurpose
impl PartialOrd for ConsentPurpose
Source§impl Serialize for ConsentPurpose
impl Serialize for ConsentPurpose
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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