pub trait DIDMethodResolver: DIDMethod {
// Required method
async fn resolve_method_representation<'a>(
&'a self,
method_specific_id: &'a str,
options: Options,
) -> Result<Output<Vec<u8>>, Error>;
// Provided method
fn method_name(&self) -> &str { ... }
}Required Methods§
Sourceasync fn resolve_method_representation<'a>(
&'a self,
method_specific_id: &'a str,
options: Options,
) -> Result<Output<Vec<u8>>, Error>
async fn resolve_method_representation<'a>( &'a self, method_specific_id: &'a str, options: Options, ) -> Result<Output<Vec<u8>>, Error>
Resolves a DID representation using a method specific identifier.
Fetches the DID document representation referenced by the input method specific identifier using the given options.
Provided Methods§
Sourcefn method_name(&self) -> &str
fn method_name(&self) -> &str
Returns the name of the method handled by this resolver.
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.