pub struct VerificationRelationships {
pub authentication: Vec<ValueOrReference>,
pub assertion_method: Vec<ValueOrReference>,
pub key_agreement: Vec<ValueOrReference>,
pub capability_invocation: Vec<ValueOrReference>,
pub capability_delegation: Vec<ValueOrReference>,
}Fields§
§authentication: Vec<ValueOrReference>authentication property of a DID
document, expressing verification
methods for
authentication purposes (e.g. generating verifiable presentations).
assertion_method: Vec<ValueOrReference>assertionMethod property of a DID document, expressing verification
methods for
assertion purposes (e.g. issuing verifiable credentials).
key_agreement: Vec<ValueOrReference>keyAgreement property of a DID document, expressing verification
methods for
key agreement purposes.
capability_invocation: Vec<ValueOrReference>capabilityInvocation property of a DID document, expressing verification
methods for
invoking cryptographic capabilities.
capability_delegation: Vec<ValueOrReference>capabilityDelegation property of a DID document, expressing verification
methods for
delegating cryptographic capabilities.
Implementations§
Source§impl VerificationRelationships
impl VerificationRelationships
pub fn proof_purpose(&self, purpose: ProofPurpose) -> &[ValueOrReference]
pub fn contains( &self, base_did: &DID, id: &DIDURL, proof_purposes: ProofPurposes, ) -> bool
Sourcepub fn from_reference(
vm_reference: DIDURLReferenceBuf,
proof_purposes: ProofPurposes,
) -> Self
pub fn from_reference( vm_reference: DIDURLReferenceBuf, proof_purposes: ProofPurposes, ) -> Self
Creates verification relationships by putting the given method reference
into all the relations selected by proof_purposes.
Trait Implementations§
Source§impl Clone for VerificationRelationships
impl Clone for VerificationRelationships
Source§fn clone(&self) -> VerificationRelationships
fn clone(&self) -> VerificationRelationships
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VerificationRelationships
impl Debug for VerificationRelationships
Source§impl Default for VerificationRelationships
impl Default for VerificationRelationships
Source§fn default() -> VerificationRelationships
fn default() -> VerificationRelationships
Source§impl<'de> Deserialize<'de> for VerificationRelationships
impl<'de> Deserialize<'de> for VerificationRelationships
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>,
Source§impl FindResource for VerificationRelationships
impl FindResource for VerificationRelationships
fn find_resource(&self, base_did: &DID, id: &DIDURL) -> Option<ResourceRef<'_>>
impl Eq for VerificationRelationships
impl StructuralPartialEq for VerificationRelationships
Auto Trait Implementations§
impl Freeze for VerificationRelationships
impl RefUnwindSafe for VerificationRelationships
impl Send for VerificationRelationships
impl Sync for VerificationRelationships
impl Unpin for VerificationRelationships
impl UnsafeUnpin for VerificationRelationships
impl UnwindSafe for VerificationRelationships
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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<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<'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
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)
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) -> &()
T.