Struct ironoxide::common::PrivateKey
source · pub struct PrivateKey(/* private fields */);
Expand description
Asymmetric private encryption key.
Implementations§
Trait Implementations§
source§impl Clone for PrivateKey
impl Clone for PrivateKey
source§fn clone(&self) -> PrivateKey
fn clone(&self) -> PrivateKey
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 PrivateKey
impl Debug for PrivateKey
source§impl<'de> Deserialize<'de> for PrivateKey
impl<'de> Deserialize<'de> for PrivateKey
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<PrivateKey> for PrivateKey
impl From<PrivateKey> for PrivateKey
source§fn from(priv_key: PrivateKey) -> Self
fn from(priv_key: PrivateKey) -> Self
Converts to this type from the input type.
source§impl From<PrivateKey> for PrivateKey
impl From<PrivateKey> for PrivateKey
source§fn from(recrypt_priv: RecryptPrivateKey) -> Self
fn from(recrypt_priv: RecryptPrivateKey) -> Self
Converts to this type from the input type.
source§impl Hash for PrivateKey
impl Hash for PrivateKey
source§impl PartialEq for PrivateKey
impl PartialEq for PrivateKey
source§fn eq(&self, other: &PrivateKey) -> bool
fn eq(&self, other: &PrivateKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PrivateKey
impl Serialize for PrivateKey
source§impl TryFrom<&[u8]> for PrivateKey
impl TryFrom<&[u8]> for PrivateKey
§type Error = IronOxideErr
type Error = IronOxideErr
The type returned in the event of a conversion error.
source§fn try_from(key_bytes: &[u8]) -> Result<PrivateKey, IronOxideErr>
fn try_from(key_bytes: &[u8]) -> Result<PrivateKey, IronOxideErr>
Performs the conversion.
impl Eq for PrivateKey
impl StructuralEq for PrivateKey
impl StructuralPartialEq for PrivateKey
Auto Trait Implementations§
impl RefUnwindSafe for PrivateKey
impl Send for PrivateKey
impl Sync for PrivateKey
impl Unpin for PrivateKey
impl UnwindSafe for PrivateKey
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more