pub struct EncryptedData {
pub database_id: DatabaseId,
pub encrypted_data: Vec<u8>,
pub nonce: [u8; 12],
}Expand description
Encrypted storage wrapper
Fields§
§database_id: DatabaseId§encrypted_data: Vec<u8>§nonce: [u8; 12]Implementations§
Source§impl EncryptedData
impl EncryptedData
Sourcepub fn encrypt(
data: &[u8],
database_id: DatabaseId,
key_manager: &mut KeyManager,
) -> KVResult<Self>
pub fn encrypt( data: &[u8], database_id: DatabaseId, key_manager: &mut KeyManager, ) -> KVResult<Self>
Trait Implementations§
Source§impl Clone for EncryptedData
impl Clone for EncryptedData
Source§fn clone(&self) -> EncryptedData
fn clone(&self) -> EncryptedData
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 moreAuto Trait Implementations§
impl Freeze for EncryptedData
impl RefUnwindSafe for EncryptedData
impl Send for EncryptedData
impl Sync for EncryptedData
impl Unpin for EncryptedData
impl UnwindSafe for EncryptedData
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