pub struct EncryptedValue { /* private fields */ }
Expand description
EncryptionWrapper around serde_json::Value, using sodiumoxide’s secretbox. Serializes into a string using base64 encoding.
Implementations§
Trait Implementations§
Source§impl Clone for EncryptedValue
impl Clone for EncryptedValue
Source§fn clone(&self) -> EncryptedValue
fn clone(&self) -> EncryptedValue
Returns a duplicate 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 EncryptedValue
impl Debug for EncryptedValue
Source§impl<'de> Deserialize<'de> for EncryptedValue
impl<'de> Deserialize<'de> for EncryptedValue
Source§fn deserialize<D>(deserializer: D) -> Result<EncryptedValue, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<EncryptedValue, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EncryptedValue
impl RefUnwindSafe for EncryptedValue
impl Send for EncryptedValue
impl Sync for EncryptedValue
impl Unpin for EncryptedValue
impl UnwindSafe for EncryptedValue
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