pub struct DIDVerificationMethod {
pub id: DIDURLBuf,
pub type_: String,
pub controller: DIDBuf,
pub properties: BTreeMap<String, Value>,
}
Fields§
§id: DIDURLBuf
Verification method identifier.
type_: String
type property of a verification method map. Should be registered in DID Specification registries - Verification method types.
controller: DIDBuf
controller property of a verification method map.
Not to be confused with the controller property of a DID document.
properties: BTreeMap<String, Value>
Verification methods properties.
Implementations§
Trait Implementations§
source§impl Clone for DIDVerificationMethod
impl Clone for DIDVerificationMethod
source§fn clone(&self) -> DIDVerificationMethod
fn clone(&self) -> DIDVerificationMethod
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 DIDVerificationMethod
impl Debug for DIDVerificationMethod
source§impl<'de> Deserialize<'de> for DIDVerificationMethod
impl<'de> Deserialize<'de> for DIDVerificationMethod
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 FindResource for DIDVerificationMethod
impl FindResource for DIDVerificationMethod
fn find_resource(&self, _base_did: &DID, id: &DIDURL) -> Option<ResourceRef<'_>>
source§impl From<DIDVerificationMethod> for GenericVerificationMethod
impl From<DIDVerificationMethod> for GenericVerificationMethod
source§fn from(value: DIDVerificationMethod) -> Self
fn from(value: DIDVerificationMethod) -> Self
Converts to this type from the input type.
source§impl From<DIDVerificationMethod> for ValueOrReference
impl From<DIDVerificationMethod> for ValueOrReference
source§fn from(value: DIDVerificationMethod) -> Self
fn from(value: DIDVerificationMethod) -> Self
Converts to this type from the input type.
source§impl PartialEq for DIDVerificationMethod
impl PartialEq for DIDVerificationMethod
source§impl Serialize for DIDVerificationMethod
impl Serialize for DIDVerificationMethod
source§impl UsesResource for DIDVerificationMethod
impl UsesResource for DIDVerificationMethod
impl Eq for DIDVerificationMethod
impl StructuralPartialEq for DIDVerificationMethod
Auto Trait Implementations§
impl Freeze for DIDVerificationMethod
impl RefUnwindSafe for DIDVerificationMethod
impl Send for DIDVerificationMethod
impl Sync for DIDVerificationMethod
impl Unpin for DIDVerificationMethod
impl UnwindSafe for DIDVerificationMethod
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
fn deserialize_typed<S>(
_: &C,
deserializer: S,
) -> Result<T, <S as Deserializer<'de>>::Error>where
S: Deserializer<'de>,
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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
.