Struct taple_core::crypto::CryptoBox
source · pub struct CryptoBox {
pub public_key: Vec<u8>,
pub secret_key: Vec<u8>,
}
Expand description
Represents asymetric key pair for storage (deprecated: KeyPair is serializable)
Fields§
§public_key: Vec<u8>
§secret_key: Vec<u8>
Trait Implementations§
source§impl<'de> Deserialize<'de> for CryptoBox
impl<'de> Deserialize<'de> for CryptoBox
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 PartialEq<CryptoBox> for CryptoBox
impl PartialEq<CryptoBox> for CryptoBox
impl StructuralPartialEq for CryptoBox
Auto Trait Implementations§
impl RefUnwindSafe for CryptoBox
impl Send for CryptoBox
impl Sync for CryptoBox
impl Unpin for CryptoBox
impl UnwindSafe for CryptoBox
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