#[non_exhaustive]pub enum EncryptedParamType {
Decimal {
precision: u8,
scale: u8,
},
Time {
scale: u8,
},
DateTime2 {
scale: u8,
},
DateTimeOffset {
scale: u8,
},
DateTime,
Char {
length: u16,
},
NChar {
length: u16,
},
Binary {
length: u16,
},
}Expand description
The explicit SQL type for an Always Encrypted parameter whose value cannot
convey it (see numeric, time, datetime2, datetimeoffset,
datetime). Carries the precision/scale/length the encrypted column
requires the declared parameter type to match exactly.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Decimal
decimal(precision, scale).
Fields
Time
time(scale).
DateTime2
datetime2(scale).
DateTimeOffset
datetimeoffset(scale).
DateTime
Legacy datetime (8 bytes; ~3.33 ms resolution).
Char
Fixed-length char(length) (length in bytes; the encrypted column must
use a *_BIN2 collation, and the value is encoded in its code page).
NChar
Fixed-length nchar(length) (length in UTF-16 characters; the encrypted
column must use a *_BIN2 collation).
Binary
Fixed-length binary(length) (length in bytes).
Trait Implementations§
Source§impl Clone for EncryptedParamType
impl Clone for EncryptedParamType
Source§fn clone(&self) -> EncryptedParamType
fn clone(&self) -> EncryptedParamType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EncryptedParamType
Source§impl Debug for EncryptedParamType
impl Debug for EncryptedParamType
impl Eq for EncryptedParamType
Source§impl PartialEq for EncryptedParamType
impl PartialEq for EncryptedParamType
Source§fn eq(&self, other: &EncryptedParamType) -> bool
fn eq(&self, other: &EncryptedParamType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EncryptedParamType
Auto Trait Implementations§
impl Freeze for EncryptedParamType
impl RefUnwindSafe for EncryptedParamType
impl Send for EncryptedParamType
impl Sync for EncryptedParamType
impl Unpin for EncryptedParamType
impl UnsafeUnpin for EncryptedParamType
impl UnwindSafe for EncryptedParamType
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