Trait VerificationMethodResolver

Source
pub trait VerificationMethodResolver {
    type Method: Clone;

    // Required method
    async fn resolve_verification_method_with(
        &self,
        issuer: Option<&Iri>,
        method: Option<ReferenceOrOwnedRef<'_, Self::Method>>,
        options: ResolutionOptions,
    ) -> Result<Cow<'_, Self::Method>, VerificationMethodResolutionError>;

    // Provided method
    async fn resolve_verification_method(
        &self,
        issuer: Option<&Iri>,
        method: Option<ReferenceOrOwnedRef<'_, Self::Method>>,
    ) -> Result<Cow<'_, Self::Method>, VerificationMethodResolutionError> { ... }
}

Required Associated Types§

Source

type Method: Clone

Verification method type.

Required Methods§

Source

async fn resolve_verification_method_with( &self, issuer: Option<&Iri>, method: Option<ReferenceOrOwnedRef<'_, Self::Method>>, options: ResolutionOptions, ) -> Result<Cow<'_, Self::Method>, VerificationMethodResolutionError>

Resolve the verification method reference.

Provided Methods§

Source

async fn resolve_verification_method( &self, issuer: Option<&Iri>, method: Option<ReferenceOrOwnedRef<'_, Self::Method>>, ) -> Result<Cow<'_, Self::Method>, VerificationMethodResolutionError>

Resolve the verification method reference with the default options.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'t, T: VerificationMethodResolver> VerificationMethodResolver for &'t T

Source§

impl<M: VerificationMethod> VerificationMethodResolver for HashMap<IriBuf, M>

Implementors§