pub enum ColumnMode {
PlaintextDuplicate = 1,
EncryptedDuplicate = 2,
Encrypted = 3,
}Variants§
PlaintextDuplicate = 1
Store both the plaintext and encrypted data - all operations will continue to be performed against the plaintext data. This mode should be used while migrating existing data.
EncryptedDuplicate = 2
Store both the plaintext and encrypted data, but all operations will be mapped to encrypted data. In this mode the plaintext is just a backup.
Encrypted = 3
Only store the encrypted data. This mode should be used once migration is complete so columns get the maximum protection.
Trait Implementations§
Source§impl Clone for ColumnMode
impl Clone for ColumnMode
Source§fn clone(&self) -> ColumnMode
fn clone(&self) -> ColumnMode
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 ColumnMode
impl Debug for ColumnMode
Source§impl<'de> Deserialize<'de> for ColumnMode
impl<'de> Deserialize<'de> for ColumnMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ColumnMode
impl PartialEq for ColumnMode
Source§impl Serialize for ColumnMode
impl Serialize for ColumnMode
impl Copy for ColumnMode
impl StructuralPartialEq for ColumnMode
Auto Trait Implementations§
impl Freeze for ColumnMode
impl RefUnwindSafe for ColumnMode
impl Send for ColumnMode
impl Sync for ColumnMode
impl Unpin for ColumnMode
impl UnwindSafe for ColumnMode
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