EncodablePublic

Trait EncodablePublic 

Source
pub trait EncodablePublic {
    // Required methods
    fn encode_bson(&self) -> Vec<u8> ;
    fn decode_bson(bson_data: &[u8]) -> Result<Self, FormatError>
       where Self: Sized;
    fn encode_pem(&self) -> String;
    fn decode_pem(pem_data: &str) -> Result<Self, FormatError>
       where Self: Sized;
}

Required Methods§

Source

fn encode_bson(&self) -> Vec<u8>

Source

fn decode_bson(bson_data: &[u8]) -> Result<Self, FormatError>
where Self: Sized,

Source

fn encode_pem(&self) -> String

Source

fn decode_pem(pem_data: &str) -> Result<Self, FormatError>
where Self: Sized,

Implementors§