pub struct CipherOptions {
pub keys: HashMap<String, Vec<u8>>,
pub key_id: Option<String>,
pub on_missing_key: Option<MissingKeyPolicy>,
}Expand description
Options for Database::open — key material and how reads behave when a value was written with
a key that is not among them. Mirrors the TS CipherOptions.
Fields§
§keys: HashMap<String, Vec<u8>>Every key that may be needed to read, by id. Each must be 32 bytes for AES-256-GCM.
key_id: Option<String>Which of them new values are written with. Defaults to the only key, when there is one.
on_missing_key: Option<MissingKeyPolicy>Trait Implementations§
Source§impl Clone for CipherOptions
impl Clone for CipherOptions
Source§impl Debug for CipherOptions
impl Debug for CipherOptions
Auto Trait Implementations§
impl Freeze for CipherOptions
impl RefUnwindSafe for CipherOptions
impl Send for CipherOptions
impl Sync for CipherOptions
impl Unpin for CipherOptions
impl UnsafeUnpin for CipherOptions
impl UnwindSafe for CipherOptions
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