Trait der::DecodePem

source ·
pub trait DecodePem: DecodeOwned + PemLabel {
    fn from_pem(pem: impl AsRef<[u8]>) -> Result<Self>;
}
Available on crate feature pem only.
Expand description

PEM decoding trait.

This trait is automatically impl’d for any type which impls both DecodeOwned and PemLabel.

Required Methods§

Try to decode this type from PEM.

Implementors§