Struct ssi_dids_core::document::VerificationRelationships
source · 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 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
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
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
.