pub struct DatabaseKey {
pub database_id: DatabaseId,
pub key: Key<Aes256Gcm>,
pub nonce: [u8; 12],
}Expand description
Encryption key for a specific database
Fields§
§database_id: DatabaseId§key: Key<Aes256Gcm>§nonce: [u8; 12]Implementations§
Trait Implementations§
Source§impl Clone for DatabaseKey
impl Clone for DatabaseKey
Source§fn clone(&self) -> DatabaseKey
fn clone(&self) -> DatabaseKey
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 DatabaseKey
impl RefUnwindSafe for DatabaseKey
impl Send for DatabaseKey
impl Sync for DatabaseKey
impl Unpin for DatabaseKey
impl UnwindSafe for DatabaseKey
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