Struct secure_survey::keys::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: BigIntTrait Implementations§
source§impl Clone for MinimalEncryptionKey
impl Clone for MinimalEncryptionKey
source§fn clone(&self) -> MinimalEncryptionKey
fn clone(&self) -> MinimalEncryptionKey
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 MinimalEncryptionKey
impl Debug for MinimalEncryptionKey
source§impl<'de> Deserialize<'de> for MinimalEncryptionKey
impl<'de> Deserialize<'de> for MinimalEncryptionKey
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<MinimalEncryptionKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<MinimalEncryptionKey, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'e> From<&'e EncryptionKey> for MinimalEncryptionKey
impl<'e> From<&'e EncryptionKey> for MinimalEncryptionKey
source§fn from(ek: &'e EncryptionKey) -> MinimalEncryptionKey
fn from(ek: &'e EncryptionKey) -> MinimalEncryptionKey
Converts to this type from the input type.
source§impl<'kp> From<&'kp Keypair> for MinimalEncryptionKey
impl<'kp> From<&'kp Keypair> for MinimalEncryptionKey
source§fn from(keypair: &'kp Keypair) -> MinimalEncryptionKey
fn from(keypair: &'kp Keypair) -> MinimalEncryptionKey
Converts to this type from the input type.
source§impl PartialEq<MinimalEncryptionKey> for MinimalEncryptionKey
impl PartialEq<MinimalEncryptionKey> for MinimalEncryptionKey
source§fn eq(&self, other: &MinimalEncryptionKey) -> bool
fn eq(&self, other: &MinimalEncryptionKey) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for MinimalEncryptionKey
impl Serialize for MinimalEncryptionKey
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more