Struct paillier::MinimalEncryptionKey
source · pub struct MinimalEncryptionKey {
pub n: BigInt,
}
Expand description
Public encryption key with no precomputed values.
Used e.g. for serialization of EncryptionKey
.
Fields
n: BigInt
Trait Implementations
sourceimpl Clone for MinimalEncryptionKey
impl Clone for MinimalEncryptionKey
sourcefn clone(&self) -> MinimalEncryptionKey
fn clone(&self) -> MinimalEncryptionKey
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MinimalEncryptionKey
impl Debug for MinimalEncryptionKey
sourceimpl<'de> Deserialize<'de> for MinimalEncryptionKey
impl<'de> Deserialize<'de> for MinimalEncryptionKey
sourcefn 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
sourceimpl<'e> From<&'e EncryptionKey> for MinimalEncryptionKey
impl<'e> From<&'e EncryptionKey> for MinimalEncryptionKey
sourcefn from(ek: &'e EncryptionKey) -> Self
fn from(ek: &'e EncryptionKey) -> Self
Converts to this type from the input type.
sourceimpl<'kp> From<&'kp Keypair> for MinimalEncryptionKey
impl<'kp> From<&'kp Keypair> for MinimalEncryptionKey
sourceimpl<'e> From<MinimalEncryptionKey> for EncryptionKey
impl<'e> From<MinimalEncryptionKey> for EncryptionKey
sourcefn from(ek: MinimalEncryptionKey) -> Self
fn from(ek: MinimalEncryptionKey) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<MinimalEncryptionKey> for MinimalEncryptionKey
impl PartialEq<MinimalEncryptionKey> for MinimalEncryptionKey
sourcefn eq(&self, other: &MinimalEncryptionKey) -> bool
fn eq(&self, other: &MinimalEncryptionKey) -> bool
sourceimpl Serialize for MinimalEncryptionKey
impl Serialize for MinimalEncryptionKey
impl StructuralPartialEq for MinimalEncryptionKey
Auto Trait Implementations
impl RefUnwindSafe for MinimalEncryptionKey
impl Send for MinimalEncryptionKey
impl Sync for MinimalEncryptionKey
impl Unpin for MinimalEncryptionKey
impl UnwindSafe for MinimalEncryptionKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more