Enum SectionKind
enum SectionKind
A single recognised section in a PEM file.
Variants
-
Certificate A DER-encoded x509 certificate.
Appears as "CERTIFICATE" in PEM files.
-
PublicKey A DER-encoded Subject Public Key Info; as specified in RFC 7468.
Appears as "PUBLIC KEY" in PEM files.
-
RsaPrivateKey A DER-encoded plaintext RSA private key; as specified in PKCS #1/RFC 3447
Appears as "RSA PRIVATE KEY" in PEM files.
-
PrivateKey A DER-encoded plaintext private key; as specified in PKCS #8/RFC 5958
Appears as "PRIVATE KEY" in PEM files.
-
EcPrivateKey A Sec1-encoded plaintext private key; as specified in RFC 5915
Appears as "EC PRIVATE KEY" in PEM files.
-
Crl A Certificate Revocation List; as specified in RFC 5280
Appears as "X509 CRL" in PEM files.
-
Csr A Certificate Signing Request; as specified in RFC 2986
Appears as "CERTIFICATE REQUEST" in PEM files.
-
EchConfigList An EchConfigList structure, as specified in https://www.ietf.org/archive/id/draft-farrell-tls-pemesni-05.html.
Appears as "ECHCONFIG" in PEM files.
Implementations
impl Clone for SectionKind
fn clone(self: &Self) -> SectionKind
impl Copy for SectionKind
impl Debug for SectionKind
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Freeze for SectionKind
impl PartialEq for SectionKind
fn eq(self: &Self, other: &SectionKind) -> bool
impl RefUnwindSafe for SectionKind
impl Send for SectionKind
impl StructuralPartialEq for SectionKind
impl Sync for SectionKind
impl TryFrom for SectionKind
fn try_from(value: &[u8]) -> Result<Self, <Self as >::Error>
impl Unpin for SectionKind
impl UnwindSafe for SectionKind
impl<T> Any for SectionKind
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for SectionKind
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for SectionKind
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for SectionKind
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for SectionKind
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for SectionKind
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for SectionKind
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for SectionKind
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for SectionKind
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>