pub struct Certificate(pub Vec<u8>);
Expand description
This type contains a single certificate by value.
The certificate must be DER-encoded X.509.
rustls::pemfile::certs
function can be used to parse a PEM file.
Tuple Fields§
§0: Vec<u8>
Trait Implementations§
Source§impl AsRef<[u8]> for Certificate
impl AsRef<[u8]> for Certificate
Source§impl Clone for Certificate
impl Clone for Certificate
Source§fn clone(&self) -> Certificate
fn clone(&self) -> Certificate
Returns a copy 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 Codec for Certificate
impl Codec for Certificate
Source§impl Debug for Certificate
impl Debug for Certificate
Source§impl PartialEq for Certificate
impl PartialEq for Certificate
impl Eq for Certificate
impl StructuralPartialEq for Certificate
Auto Trait Implementations§
impl Freeze for Certificate
impl RefUnwindSafe for Certificate
impl Send for Certificate
impl Sync for Certificate
impl Unpin for Certificate
impl UnwindSafe for Certificate
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