[][src]Trait cryptouri::Encodable

pub trait Encodable {
    fn to_uri_string(&self) -> String;
fn to_dasherized_string(&self) -> String; }

Objects that can be encoded as CryptoUri

Required methods

fn to_uri_string(&self) -> String

Encode this object in URI generic syntax

fn to_dasherized_string(&self) -> String

Encode this object in URI-embeddable "dasherized" format

Loading content...

Implementors

impl Encodable for Digest[src]

fn to_uri_string(&self) -> String[src]

Serialize this Digest as a URI-encoded String

fn to_dasherized_string(&self) -> String[src]

Serialize this Digest as a "dasherized" String

impl Encodable for PublicKey[src]

fn to_uri_string(&self) -> String[src]

Serialize this PublicKey as a URI-encoded String

fn to_dasherized_string(&self) -> String[src]

Serialize this PublicKey as a "dasherized" String

impl Encodable for SecretKey[src]

fn to_uri_string(&self) -> String[src]

Serialize this SecretKey as a URI-encoded String

fn to_dasherized_string(&self) -> String[src]

Serialize this SecretKey as a "dasherized" String

impl Encodable for Signature[src]

fn to_uri_string(&self) -> String[src]

Serialize this Signature as a URI-encoded String

fn to_dasherized_string(&self) -> String[src]

Serialize this Signature as a "dasherized" String

impl Encodable for Sha256Digest[src]

impl Encodable for Ed25519PublicKey[src]

impl Encodable for Ed25519SecretKey[src]

impl Encodable for Ed25519Signature[src]

impl Encodable for CryptoUri[src]

fn to_uri_string(&self) -> String[src]

Serialize this CryptoUri as a URI-encoded String

fn to_dasherized_string(&self) -> String[src]

Serialize this CryptoUri as a "dasherized" String

impl Encodable for Aes128GcmKey[src]

impl Encodable for Aes256GcmKey[src]

Loading content...