Struct test_cert_gen::Cert[][src]

pub struct Cert(_);

DER-encoded X.509 certificate.

Implementations

impl Cert[src]

pub fn from_der(cert_der: impl Into<Vec<u8>>) -> Cert[src]

Construct from DER-encoded.

pub fn from_pem(cert_der_pem: impl AsRef<[u8]>) -> Cert[src]

Construct from PEM-DER-encoded.

pub fn get_der(&self) -> &[u8][src]

Get certificate as DER.

pub fn to_pem(&self) -> String[src]

Convert a certificate to PEM format.

Trait Implementations

impl Clone for Cert[src]

impl Debug for Cert[src]

impl Eq for Cert[src]

impl PartialEq<Cert> for Cert[src]

impl StructuralEq for Cert[src]

impl StructuralPartialEq for Cert[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.