Struct mz_ccsr::tls::Certificate
source · pub struct Certificate {
der: Vec<u8>,
}
Expand description
A Serde-enabled wrapper around reqwest::Certificate
.
Fields§
§der: Vec<u8>
Implementations§
source§impl Certificate
impl Certificate
sourcepub fn from_pem(pem: &[u8]) -> Result<Certificate>
pub fn from_pem(pem: &[u8]) -> Result<Certificate>
sourcepub fn from_der(der: &[u8]) -> Result<Certificate>
pub fn from_der(der: &[u8]) -> Result<Certificate>
Trait Implementations§
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 Debug for Certificate
impl Debug for Certificate
source§impl<'de> Deserialize<'de> for Certificate
impl<'de> Deserialize<'de> for Certificate
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<Certificate> for Certificate
impl From<Certificate> for Certificate
source§fn from(cert: Certificate) -> Self
fn from(cert: Certificate) -> Self
Converts to this type from the input type.
source§impl Hash for Certificate
impl Hash for Certificate
source§impl PartialEq for Certificate
impl PartialEq for Certificate
source§impl Serialize for Certificate
impl Serialize 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.