pub struct PkiMessage<'a> {
pub header: PkiHeader<'a>,
pub body: PkiBody,
pub protection: Option<PkiProtection>,
pub extra_certs: Option<CmpCertificates>,
}Expand description
The PKIMessage type is defined in RFC 4210 Section 5.1.
PKIMessage ::= SEQUENCE {
header PKIHeader,
body PKIBody,
protection [0] PKIProtection OPTIONAL,
extraCerts [1] SEQUENCE SIZE (1..MAX) OF CMPCertificate
OPTIONAL }Tags are EXPLICIT TAG in default according to rfc4210#appendix-F.
Fields§
§header: PkiHeader<'a>§body: PkiBody§protection: Option<PkiProtection>§extra_certs: Option<CmpCertificates>Trait Implementations§
Source§impl<'a> BERDecodable for PkiMessage<'a>
impl<'a> BERDecodable for PkiMessage<'a>
Source§fn decode_ber(reader: BERReader<'_, '_>) -> ASN1Result<Self>
fn decode_ber(reader: BERReader<'_, '_>) -> ASN1Result<Self>
Source§impl<'a> Clone for PkiMessage<'a>
impl<'a> Clone for PkiMessage<'a>
Source§fn clone(&self) -> PkiMessage<'a>
fn clone(&self) -> PkiMessage<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for PkiMessage<'a>
impl<'a> Debug for PkiMessage<'a>
impl<'a> Eq for PkiMessage<'a>
Source§impl<'a> Hash for PkiMessage<'a>
impl<'a> Hash for PkiMessage<'a>
Source§impl<'a> PartialEq for PkiMessage<'a>
impl<'a> PartialEq for PkiMessage<'a>
Source§fn eq(&self, other: &PkiMessage<'a>) -> bool
fn eq(&self, other: &PkiMessage<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for PkiMessage<'a>
Auto Trait Implementations§
impl<'a> Freeze for PkiMessage<'a>
impl<'a> RefUnwindSafe for PkiMessage<'a>
impl<'a> Send for PkiMessage<'a>
impl<'a> Sync for PkiMessage<'a>
impl<'a> Unpin for PkiMessage<'a>
impl<'a> UnsafeUnpin for PkiMessage<'a>
impl<'a> UnwindSafe for PkiMessage<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more