pub struct DatabaseConfig {
pub version: DatabaseVersion,
pub outer_cipher_config: OuterCipherConfig,
pub compression_config: CompressionConfig,
pub inner_cipher_config: InnerCipherConfig,
pub kdf_config: KdfConfig,
pub public_custom_data: Option<VariantDictionary>,
}Expand description
Configuration of how a database should be stored
Fields§
§version: DatabaseVersionVersion of the outer database file
outer_cipher_config: OuterCipherConfigWhat encryption to use for the outer encryption
compression_config: CompressionConfigWhat algorithm to use to compress the inner data
inner_cipher_config: InnerCipherConfigWhat encryption to use for protected fields inside the database
kdf_config: KdfConfigSettings for the Key Derivation Function (KDF)
public_custom_data: Option<VariantDictionary>Custom data of plugins/ports.
Trait Implementations§
Source§impl Clone for DatabaseConfig
impl Clone for DatabaseConfig
Source§fn clone(&self) -> DatabaseConfig
fn clone(&self) -> DatabaseConfig
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 DatabaseConfig
impl Debug for DatabaseConfig
Source§impl Default for DatabaseConfig
Sensible default configuration for new databases
impl Default for DatabaseConfig
Sensible default configuration for new databases
Source§impl PartialEq for DatabaseConfig
impl PartialEq for DatabaseConfig
Source§impl Serialize for DatabaseConfig
impl Serialize for DatabaseConfig
impl Eq for DatabaseConfig
impl StructuralPartialEq for DatabaseConfig
Auto Trait Implementations§
impl Freeze for DatabaseConfig
impl RefUnwindSafe for DatabaseConfig
impl Send for DatabaseConfig
impl Sync for DatabaseConfig
impl Unpin for DatabaseConfig
impl UnwindSafe for DatabaseConfig
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