pub enum EncryptionType {
Deterministic,
Randomized,
}Expand description
Encryption type for Always Encrypted columns.
Determines how data is encrypted and what operations are supported.
Variants§
Deterministic
Deterministic encryption: same plaintext → same ciphertext.
Supports:
- Equality comparisons (
WHERE col = @param) - JOIN operations
- GROUP BY
- DISTINCT
- Indexing
Security note: Reveals data patterns; less secure than randomized.
Randomized
Randomized encryption: same plaintext → different ciphertext each time.
Maximum security but does NOT support:
- Any comparisons (equality, range, etc.)
- JOIN operations on encrypted column
- GROUP BY or DISTINCT
- Indexing
Implementations§
Source§impl EncryptionType
impl EncryptionType
Sourcepub fn algorithm_name(&self) -> &'static str
pub fn algorithm_name(&self) -> &'static str
Returns the algorithm identifier used in metadata.
Sourcepub fn from_sys_columns_value(value: i32) -> Option<Self>
pub fn from_sys_columns_value(value: i32) -> Option<Self>
Parse from the numeric value stored in sys.columns.
Trait Implementations§
Source§impl Clone for EncryptionType
impl Clone for EncryptionType
Source§fn clone(&self) -> EncryptionType
fn clone(&self) -> EncryptionType
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 EncryptionType
impl Debug for EncryptionType
Source§impl PartialEq for EncryptionType
impl PartialEq for EncryptionType
impl Copy for EncryptionType
impl Eq for EncryptionType
impl StructuralPartialEq for EncryptionType
Auto Trait Implementations§
impl Freeze for EncryptionType
impl RefUnwindSafe for EncryptionType
impl Send for EncryptionType
impl Sync for EncryptionType
impl Unpin for EncryptionType
impl UnwindSafe for EncryptionType
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