pub enum NormalizedProvider {
Json,
Yml,
Toml,
Binary {
encryption_key: Option<String>,
kdf: KeyDerivation,
},
Sqlite {
db_name: String,
table_name: String,
},
}Expand description
Normalized provider used internally after payload normalization.
Each variant carries only the fields that are meaningful for that provider,
eliminating the spurious db_name/table_name on non-SQLite providers and
the spurious encryption_key on non-Binary providers.
Variants§
Trait Implementations§
Source§impl Clone for NormalizedProvider
impl Clone for NormalizedProvider
Source§fn clone(&self) -> NormalizedProvider
fn clone(&self) -> NormalizedProvider
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 NormalizedProvider
impl RefUnwindSafe for NormalizedProvider
impl Send for NormalizedProvider
impl Sync for NormalizedProvider
impl Unpin for NormalizedProvider
impl UnsafeUnpin for NormalizedProvider
impl UnwindSafe for NormalizedProvider
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