pub struct PrivateKeyDer(pub Vec<u8>);
Expand description
Private key, DER encoded.
Tuple Fields§
§0: Vec<u8>
Implementations§
Source§impl PrivateKeyDer
impl PrivateKeyDer
Sourcepub fn from_pem_slice(pem: &[u8]) -> Result<Self, PemError>
pub fn from_pem_slice(pem: &[u8]) -> Result<Self, PemError>
Creates a DER-encoded private key from a PEM-encoded private key.
Trait Implementations§
Source§impl Clone for PrivateKeyDer
impl Clone for PrivateKeyDer
Source§fn clone(&self) -> PrivateKeyDer
fn clone(&self) -> PrivateKeyDer
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PrivateKeyDer
impl Debug for PrivateKeyDer
Source§impl<'de> Deserialize<'de> for PrivateKeyDer
impl<'de> Deserialize<'de> for PrivateKeyDer
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 Drop for PrivateKeyDer
impl Drop for PrivateKeyDer
Auto Trait Implementations§
impl Freeze for PrivateKeyDer
impl RefUnwindSafe for PrivateKeyDer
impl Send for PrivateKeyDer
impl Sync for PrivateKeyDer
impl Unpin for PrivateKeyDer
impl UnwindSafe for PrivateKeyDer
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)