pub trait DIDResolver {
// Required method
fn resolve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
did: &'life1 str,
_options: &'life2 DIDResolutionOptions,
) -> Pin<Box<dyn Future<Output = ResolutionOutput> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
// Provided method
fn dereference<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
did_url: &'life1 str,
_options: &'life2 DereferencingOptions,
) -> Pin<Box<dyn Future<Output = DereferencingOutput> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
}Expand description
Abstract contract for DID resolution.
Required Methods§
Sourcefn resolve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
did: &'life1 str,
_options: &'life2 DIDResolutionOptions,
) -> Pin<Box<dyn Future<Output = ResolutionOutput> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn resolve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
did: &'life1 str,
_options: &'life2 DIDResolutionOptions,
) -> Pin<Box<dyn Future<Output = ResolutionOutput> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Resolves a DID address into its corresponding DID document.
Provided Methods§
Sourcefn dereference<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
did_url: &'life1 str,
_options: &'life2 DereferencingOptions,
) -> Pin<Box<dyn Future<Output = DereferencingOutput> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn dereference<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
did_url: &'life1 str,
_options: &'life2 DereferencingOptions,
) -> Pin<Box<dyn Future<Output = DereferencingOutput> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Dereferences a DID URL into its corresponding resource.