pub struct ProofPurposes {
pub assertion_method: bool,
pub authentication: bool,
pub capability_invocation: bool,
pub capability_delegation: bool,
pub key_agreement: bool,
}
Expand description
Set of proof purposes.
Fields§
§assertion_method: bool
§authentication: bool
§capability_invocation: bool
§capability_delegation: bool
§key_agreement: bool
Implementations§
Source§impl ProofPurposes
impl ProofPurposes
pub fn none() -> Self
pub fn all() -> Self
pub fn contains(&self, p: ProofPurpose) -> bool
pub fn contains_all(&self, p: Self) -> bool
pub fn insert(&mut self, p: ProofPurpose)
pub fn remove(&mut self, p: ProofPurpose)
pub fn iter(&self) -> ProofPurposesIter ⓘ
Trait Implementations§
Source§impl BitAnd<ProofPurpose> for ProofPurposes
impl BitAnd<ProofPurpose> for ProofPurposes
Source§type Output = ProofPurposes
type Output = ProofPurposes
The resulting type after applying the
&
operator.Source§fn bitand(self, other: ProofPurpose) -> Self
fn bitand(self, other: ProofPurpose) -> Self
Performs the
&
operation. Read moreSource§impl BitAnd for ProofPurposes
impl BitAnd for ProofPurposes
Source§impl BitAndAssign<ProofPurpose> for ProofPurposes
impl BitAndAssign<ProofPurpose> for ProofPurposes
Source§fn bitand_assign(&mut self, other: ProofPurpose)
fn bitand_assign(&mut self, other: ProofPurpose)
Performs the
&=
operation. Read moreSource§impl BitAndAssign for ProofPurposes
impl BitAndAssign for ProofPurposes
Source§fn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
Performs the
&=
operation. Read moreSource§impl BitOr<ProofPurpose> for ProofPurposes
impl BitOr<ProofPurpose> for ProofPurposes
Source§type Output = ProofPurposes
type Output = ProofPurposes
The resulting type after applying the
|
operator.Source§fn bitor(self, other: ProofPurpose) -> Self
fn bitor(self, other: ProofPurpose) -> Self
Performs the
|
operation. Read moreSource§impl BitOr for ProofPurposes
impl BitOr for ProofPurposes
Source§impl BitOrAssign<ProofPurpose> for ProofPurposes
impl BitOrAssign<ProofPurpose> for ProofPurposes
Source§fn bitor_assign(&mut self, other: ProofPurpose)
fn bitor_assign(&mut self, other: ProofPurpose)
Performs the
|=
operation. Read moreSource§impl BitOrAssign for ProofPurposes
impl BitOrAssign for ProofPurposes
Source§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
Performs the
|=
operation. Read moreSource§impl Clone for ProofPurposes
impl Clone for ProofPurposes
Source§fn clone(&self) -> ProofPurposes
fn clone(&self) -> ProofPurposes
Returns a copy of the value. Read more
1.0.0 · 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 ProofPurposes
impl Debug for ProofPurposes
Source§impl Default for ProofPurposes
impl Default for ProofPurposes
Source§fn default() -> ProofPurposes
fn default() -> ProofPurposes
Returns the “default value” for a type. Read more
Source§impl From<ProofPurpose> for ProofPurposes
impl From<ProofPurpose> for ProofPurposes
Source§fn from(p: ProofPurpose) -> Self
fn from(p: ProofPurpose) -> Self
Converts to this type from the input type.
Source§impl Hash for ProofPurposes
impl Hash for ProofPurposes
Source§impl IntoIterator for ProofPurposes
impl IntoIterator for ProofPurposes
Source§impl Ord for ProofPurposes
impl Ord for ProofPurposes
Source§fn cmp(&self, other: &ProofPurposes) -> Ordering
fn cmp(&self, other: &ProofPurposes) -> Ordering
1.21.0 · 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 ProofPurposes
impl PartialEq for ProofPurposes
Source§impl PartialOrd for ProofPurposes
impl PartialOrd for ProofPurposes
impl Copy for ProofPurposes
impl Eq for ProofPurposes
impl StructuralPartialEq for ProofPurposes
Auto Trait Implementations§
impl Freeze for ProofPurposes
impl RefUnwindSafe for ProofPurposes
impl Send for ProofPurposes
impl Sync for ProofPurposes
impl Unpin for ProofPurposes
impl UnwindSafe for ProofPurposes
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> Clear for Twhere
T: InitializableFromZeroed + ?Sized,
impl<T> Clear for Twhere
T: InitializableFromZeroed + ?Sized,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
fn equivalent(&self, key: &K) -> bool
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> InitializableFromZeroed for Twhere
T: Default,
impl<T> InitializableFromZeroed for Twhere
T: Default,
Source§unsafe fn initialize(place: *mut T)
unsafe fn initialize(place: *mut T)
Called to initialize a place to a valid value, after it is set
to all-bits-zero. Read more
Source§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T
.