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§
Required Methods§
sourceasync fn resolve_verification_method_with(
&self,
issuer: Option<&Iri>,
method: Option<ReferenceOrOwnedRef<'_, Self::Method>>,
options: ResolutionOptions,
) -> Result<Cow<'_, Self::Method>, VerificationMethodResolutionError>
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§
sourceasync fn resolve_verification_method(
&self,
issuer: Option<&Iri>,
method: Option<ReferenceOrOwnedRef<'_, Self::Method>>,
) -> Result<Cow<'_, Self::Method>, VerificationMethodResolutionError>
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.
Object Safety§
This trait is not object safe.