pub struct ColumnEncryptionInfo {
pub column_name: String,
pub column_ordinal: u16,
pub is_encrypted: bool,
pub encryption_type: Option<EncryptionType>,
pub encryption_algorithm: Option<String>,
pub cek_metadata: Option<CekMetadata>,
}Expand description
Encryption information for a specific database column.
Fields§
§column_name: StringThe column name.
column_ordinal: u16The ordinal position (1-based).
is_encrypted: boolWhether this column is encrypted.
encryption_type: Option<EncryptionType>The encryption type (if encrypted).
encryption_algorithm: Option<String>The encryption algorithm name.
cek_metadata: Option<CekMetadata>CEK metadata (if encrypted).
Implementations§
Source§impl ColumnEncryptionInfo
impl ColumnEncryptionInfo
Sourcepub fn unencrypted(column_name: impl Into<String>, column_ordinal: u16) -> Self
pub fn unencrypted(column_name: impl Into<String>, column_ordinal: u16) -> Self
Create info for a non-encrypted column.
Sourcepub fn encrypted(
column_name: impl Into<String>,
column_ordinal: u16,
encryption_type: EncryptionType,
cek_metadata: CekMetadata,
) -> Self
pub fn encrypted( column_name: impl Into<String>, column_ordinal: u16, encryption_type: EncryptionType, cek_metadata: CekMetadata, ) -> Self
Create info for an encrypted column.
Trait Implementations§
Source§impl Clone for ColumnEncryptionInfo
impl Clone for ColumnEncryptionInfo
Source§fn clone(&self) -> ColumnEncryptionInfo
fn clone(&self) -> ColumnEncryptionInfo
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 ColumnEncryptionInfo
impl RefUnwindSafe for ColumnEncryptionInfo
impl Send for ColumnEncryptionInfo
impl Sync for ColumnEncryptionInfo
impl Unpin for ColumnEncryptionInfo
impl UnwindSafe for ColumnEncryptionInfo
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