[][src]Trait dubp_documents::IntoSpecializedDocument

pub trait IntoSpecializedDocument<P> {
    fn into_specialized(self) -> P;
}

Trait allowing access to the document through it's proper protocol version.

This trait is generic over P providing all supported protocol version variants.

A lifetime is specified to allow enum variants to hold references to the document.

Required methods

fn into_specialized(self) -> P

Get a protocol-specific document wrapped in an enum variant.

Loading content...

Implementors

impl IntoSpecializedDocument<DUBPDocument> for BlockDocument[src]

impl IntoSpecializedDocument<DUBPDocument> for CertificationDocument[src]

impl IntoSpecializedDocument<DUBPDocument> for IdentityDocument[src]

impl IntoSpecializedDocument<DUBPDocument> for MembershipDocument[src]

impl IntoSpecializedDocument<DUBPDocument> for RevocationDocument[src]

impl IntoSpecializedDocument<DUBPDocument> for TransactionDocument[src]

Loading content...