[][src]Trait didkit::DIDMethod

pub trait DIDMethod: DIDResolver {
    pub fn name(&self) -> &'static str;
pub fn to_resolver(&self) -> &dyn DIDResolver; pub fn generate(&self, _source: &Source<'_>) -> Option<String> { ... } }

Required methods

pub fn name(&self) -> &'static str[src]

pub fn to_resolver(&self) -> &dyn DIDResolver[src]

Upcast the DID method as a DID resolver.

This is a workaround for not being able to cast a trait object to a supertrait object.

Implementations should simply return self.

Loading content...

Provided methods

pub fn generate(&self, _source: &Source<'_>) -> Option<String>[src]

Generate a DID from some source

Loading content...

Implementations on Foreign Types

impl DIDMethod for DIDEthr

impl DIDMethod for DIDExample[src]

impl DIDMethod for DIDKey

impl DIDMethod for DIDSol

impl DIDMethod for DIDTz

impl DIDMethod for DIDWeb

Loading content...


Loading content...