[][src]Trait didkit::DIDResolver

pub trait DIDResolver: Sync {
#[must_use]    pub fn resolve<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        did: &'life1 str,
        input_metadata: &'life2 ResolutionInputMetadata
    ) -> Pin<Box<dyn Future<Output = (ResolutionMetadata, Option<Document>, Option<DocumentMetadata>)> + 'async_trait + Send, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; #[must_use] pub fn resolve_representation<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        did: &'life1 str,
        input_metadata: &'life2 ResolutionInputMetadata
    ) -> Pin<Box<dyn Future<Output = (ResolutionMetadata, Vec<u8, Global>, Option<DocumentMetadata>)> + 'async_trait + Send, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] pub fn dereference<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        _did_url: &'life1 DIDURL,
        _did_url_dereferencing_input_metadata: &'life2 DereferencingInputMetadata
    ) -> Pin<Box<dyn Future<Output = Option<(DereferencingMetadata, Content, ContentMetadata)>> + 'async_trait + Send, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
, { ... }
pub fn to_did_method(&self) -> Option<&dyn DIDMethod> { ... } }

Required methods

#[must_use]pub fn resolve<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    did: &'life1 str,
    input_metadata: &'life2 ResolutionInputMetadata
) -> Pin<Box<dyn Future<Output = (ResolutionMetadata, Option<Document>, Option<DocumentMetadata>)> + 'async_trait + Send, Global>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Provided methods

#[must_use]pub fn resolve_representation<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    did: &'life1 str,
    input_metadata: &'life2 ResolutionInputMetadata
) -> Pin<Box<dyn Future<Output = (ResolutionMetadata, Vec<u8, Global>, Option<DocumentMetadata>)> + 'async_trait + Send, Global>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]pub fn dereference<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    _did_url: &'life1 DIDURL,
    _did_url_dereferencing_input_metadata: &'life2 DereferencingInputMetadata
) -> Pin<Box<dyn Future<Output = Option<(DereferencingMetadata, Content, ContentMetadata)>> + 'async_trait + Send, Global>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

Dereference a DID URL.

DID methods implement this function to support dereferencing DID URLs with paths and query strings. Callers should use dereference instead of this function.

https://w3c-ccg.github.io/did-resolution/#dereferencing

pub fn to_did_method(&self) -> Option<&dyn DIDMethod>[src]

Cast the resolver as a DIDMethod, if possible.

Loading content...

Implementations on Foreign Types

impl DIDResolver for DIDEthr

impl<'a> DIDResolver for DIDMethods<'a>[src]

impl DIDResolver for DIDExample[src]

impl DIDResolver for DIDKey

impl DIDResolver for DIDSol

impl DIDResolver for DIDTz

impl DIDResolver for DIDWeb

https://w3c-ccg.github.io/did-method-web/#read-resolve

Loading content...

Implementors

impl DIDResolver for HTTPDIDResolver[src]

impl<'a> DIDResolver for SeriesResolver<'a>[src]

Loading content...