pub struct ColumnCryptoInfo {
pub crypto_metadata: Option<CryptoMetadata>,
}Expand description
Extended column metadata with encryption information.
This combines the base column metadata with optional crypto metadata for Always Encrypted columns.
Fields§
§crypto_metadata: Option<CryptoMetadata>Crypto metadata (if column is encrypted).
Implementations§
Source§impl ColumnCryptoInfo
impl ColumnCryptoInfo
Sourcepub fn unencrypted() -> Self
pub fn unencrypted() -> Self
Create info for an unencrypted column.
Sourcepub fn encrypted(metadata: CryptoMetadata) -> Self
pub fn encrypted(metadata: CryptoMetadata) -> Self
Create info for an encrypted column.
Sourcepub fn is_encrypted(&self) -> bool
pub fn is_encrypted(&self) -> bool
Check if this column is encrypted.
Trait Implementations§
Source§impl Clone for ColumnCryptoInfo
impl Clone for ColumnCryptoInfo
Source§fn clone(&self) -> ColumnCryptoInfo
fn clone(&self) -> ColumnCryptoInfo
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 ColumnCryptoInfo
impl Debug for ColumnCryptoInfo
Source§impl Default for ColumnCryptoInfo
impl Default for ColumnCryptoInfo
Source§fn default() -> ColumnCryptoInfo
fn default() -> ColumnCryptoInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ColumnCryptoInfo
impl RefUnwindSafe for ColumnCryptoInfo
impl Send for ColumnCryptoInfo
impl Sync for ColumnCryptoInfo
impl Unpin for ColumnCryptoInfo
impl UnwindSafe for ColumnCryptoInfo
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