Enum identity_did::verification::MethodScope
source · pub enum MethodScope {
VerificationMethod,
VerificationRelationship(MethodRelationship),
}
Expand description
Verification method group used to refine the scope of a method query.
Variants§
VerificationMethod
VerificationRelationship(MethodRelationship)
Implementations§
source§impl MethodScope
impl MethodScope
pub fn as_str(&self) -> &'static str
pub const fn authentication() -> Self
pub const fn capability_delegation() -> Self
pub const fn capability_invocation() -> Self
pub const fn assertion_method() -> Self
pub const fn key_agreement() -> Self
Trait Implementations§
source§impl Clone for MethodScope
impl Clone for MethodScope
source§fn clone(&self) -> MethodScope
fn clone(&self) -> MethodScope
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 MethodScope
impl Debug for MethodScope
source§impl Default for MethodScope
impl Default for MethodScope
source§impl<'de> Deserialize<'de> for MethodScope
impl<'de> Deserialize<'de> for MethodScope
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
source§impl Display for MethodScope
impl Display for MethodScope
source§impl From<MethodRelationship> for MethodScope
impl From<MethodRelationship> for MethodScope
source§fn from(relationship: MethodRelationship) -> Self
fn from(relationship: MethodRelationship) -> Self
Converts to this type from the input type.
source§impl FromStr for MethodScope
impl FromStr for MethodScope
source§impl Hash for MethodScope
impl Hash for MethodScope
source§impl Ord for MethodScope
impl Ord for MethodScope
source§fn cmp(&self, other: &MethodScope) -> Ordering
fn cmp(&self, other: &MethodScope) -> 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<MethodScope> for MethodScope
impl PartialEq<MethodScope> for MethodScope
source§fn eq(&self, other: &MethodScope) -> bool
fn eq(&self, other: &MethodScope) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<MethodScope> for MethodScope
impl PartialOrd<MethodScope> for MethodScope
source§fn partial_cmp(&self, other: &MethodScope) -> Option<Ordering>
fn partial_cmp(&self, other: &MethodScope) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for MethodScope
impl Serialize for MethodScope
impl Copy for MethodScope
impl Eq for MethodScope
impl StructuralEq for MethodScope
impl StructuralPartialEq for MethodScope
Auto Trait Implementations§
impl RefUnwindSafe for MethodScope
impl Send for MethodScope
impl Sync for MethodScope
impl Unpin for MethodScope
impl UnwindSafe for MethodScope
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
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<T> FromJson for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromJson for Twhere T: for<'de> Deserialize<'de>,
source§fn from_json(json: &impl AsRef<str>) -> Result<Self, Error>
fn from_json(json: &impl AsRef<str>) -> Result<Self, Error>
Deserialize
Self
from a string of JSON text.source§fn from_json_slice(json: &impl AsRef<[u8]>) -> Result<Self, Error>
fn from_json_slice(json: &impl AsRef<[u8]>) -> Result<Self, Error>
Deserialize
Self
from bytes of JSON text.source§fn from_json_value(json: Value) -> Result<Self, Error>
fn from_json_value(json: Value) -> Result<Self, Error>
Deserialize
Self
from a serde_json::Value
.source§impl<T> ToJson for Twhere
T: Serialize,
impl<T> ToJson for Twhere T: Serialize,
source§fn to_json_value(&self) -> Result<Value, Error>
fn to_json_value(&self) -> Result<Value, Error>
Serialize
self
as a serde_json::Value
.