logo
pub trait PemLabel {
    const PEM_LABEL: &'static str;

    fn validate_pem_label(actual: &str) -> Result<()> { ... }
}
Expand description

Marker trait for types with an associated PEM type label.

Required Associated Constants

Expected PEM type label for a given document, e.g. "PRIVATE KEY"

Provided Methods

Validate that a given label matches the expected label.

Implementors