pub enum Certificate<D> {
X509(D),
RawPublicKey(D),
}Variants§
Trait Implementations§
Source§impl<D: Clone> Clone for Certificate<D>
impl<D: Clone> Clone for Certificate<D>
Source§fn clone(&self) -> Certificate<D>
fn clone(&self) -> Certificate<D>
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<D: Debug> Debug for Certificate<D>
impl<D: Debug> Debug for Certificate<D>
Source§impl<'a, D: AsRef<[u8]>> From<&'a Certificate<D>> for CertificateEntryRef<'a>
impl<'a, D: AsRef<[u8]>> From<&'a Certificate<D>> for CertificateEntryRef<'a>
Source§fn from(cert: &'a Certificate<D>) -> Self
fn from(cert: &'a Certificate<D>) -> Self
Converts to this type from the input type.
Source§impl<D: PartialEq> PartialEq for Certificate<D>
impl<D: PartialEq> PartialEq for Certificate<D>
Source§fn eq(&self, other: &Certificate<D>) -> bool
fn eq(&self, other: &Certificate<D>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<D: Copy> Copy for Certificate<D>
impl<D> StructuralPartialEq for Certificate<D>
Auto Trait Implementations§
impl<D> Freeze for Certificate<D>where
D: Freeze,
impl<D> RefUnwindSafe for Certificate<D>where
D: RefUnwindSafe,
impl<D> Send for Certificate<D>where
D: Send,
impl<D> Sync for Certificate<D>where
D: Sync,
impl<D> Unpin for Certificate<D>where
D: Unpin,
impl<D> UnsafeUnpin for Certificate<D>where
D: UnsafeUnpin,
impl<D> UnwindSafe for Certificate<D>where
D: UnwindSafe,
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