#[non_exhaustive]pub struct CertificateIdentity<'a> {
pub end_entity: CertificateDer<'a>,
pub intermediates: Vec<CertificateDer<'a>>,
}
Expand description
Data required to verify the peer’s identity.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.end_entity: CertificateDer<'a>
Certificate for the entity being verified.
intermediates: Vec<CertificateDer<'a>>
All certificates other than end_entity
received in the peer’s Certificate
message.
It is in the same order that the peer sent them and may be empty.
Implementations§
Source§impl<'a> CertificateIdentity<'a>
impl<'a> CertificateIdentity<'a>
Sourcepub fn into_owned(self) -> CertificateIdentity<'static>
pub fn into_owned(self) -> CertificateIdentity<'static>
Convert this CertificateIdentity
into an owned version.
Trait Implementations§
Source§impl<'a> Clone for CertificateIdentity<'a>
impl<'a> Clone for CertificateIdentity<'a>
Source§fn clone(&self) -> CertificateIdentity<'a>
fn clone(&self) -> CertificateIdentity<'a>
Returns a duplicate of the value. Read more
1.0.0 · 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 CertificateIdentity<'a>
impl<'a> Debug for CertificateIdentity<'a>
Source§impl<'a> PartialEq for CertificateIdentity<'a>
impl<'a> PartialEq for CertificateIdentity<'a>
impl<'a> Eq for CertificateIdentity<'a>
impl<'a> StructuralPartialEq for CertificateIdentity<'a>
Auto Trait Implementations§
impl<'a> Freeze for CertificateIdentity<'a>
impl<'a> RefUnwindSafe for CertificateIdentity<'a>
impl<'a> Send for CertificateIdentity<'a>
impl<'a> Sync for CertificateIdentity<'a>
impl<'a> Unpin for CertificateIdentity<'a>
impl<'a> UnwindSafe for CertificateIdentity<'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