Struct dco3_crypto::UserKeyPairContainer
source · pub struct UserKeyPairContainer {
pub private_key_container: PrivateKeyContainer,
pub public_key_container: PublicKeyContainer,
}
Expand description
Asymmetric user keypair container The private key is protected via secret and needs to be decrypted for usage
Fields§
§private_key_container: PrivateKeyContainer
§public_key_container: PublicKeyContainer
Implementations§
source§impl UserKeyPairContainer
impl UserKeyPairContainer
pub fn new_from_plain_keypair( plain_keypair: PlainUserKeyPairContainer, enc_private_key_pem: &str ) -> Self
Trait Implementations§
source§impl Clone for UserKeyPairContainer
impl Clone for UserKeyPairContainer
source§fn clone(&self) -> UserKeyPairContainer
fn clone(&self) -> UserKeyPairContainer
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 UserKeyPairContainer
impl Debug for UserKeyPairContainer
source§impl<'de> Deserialize<'de> for UserKeyPairContainer
impl<'de> Deserialize<'de> for UserKeyPairContainer
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
Auto Trait Implementations§
impl Freeze for UserKeyPairContainer
impl RefUnwindSafe for UserKeyPairContainer
impl Send for UserKeyPairContainer
impl Sync for UserKeyPairContainer
impl Unpin for UserKeyPairContainer
impl UnwindSafe for UserKeyPairContainer
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