pub struct ResultSetEncryptionInfo {
pub cek_table: CekTable,
pub column_crypto: Vec<Option<CryptoMetadata>>,
}Expand description
Column encryption metadata for a result set.
This combines the CEK table with per-column crypto metadata, providing all information needed to decrypt result columns.
Fields§
§cek_table: CekTableCEK table for this result set.
column_crypto: Vec<Option<CryptoMetadata>>Crypto metadata for each column (index matches column ordinal).
Implementations§
Source§impl ResultSetEncryptionInfo
impl ResultSetEncryptionInfo
Sourcepub fn new(cek_table: CekTable, column_count: usize) -> Self
pub fn new(cek_table: CekTable, column_count: usize) -> Self
Create encryption info for a result set.
Sourcepub fn set_column_crypto(&mut self, ordinal: usize, metadata: CryptoMetadata)
pub fn set_column_crypto(&mut self, ordinal: usize, metadata: CryptoMetadata)
Set crypto metadata for a column.
Sourcepub fn get_cek_for_column(&self, ordinal: usize) -> Option<&CekTableEntry>
pub fn get_cek_for_column(&self, ordinal: usize) -> Option<&CekTableEntry>
Get the CEK entry for a column.
Sourcepub fn is_column_encrypted(&self, ordinal: usize) -> bool
pub fn is_column_encrypted(&self, ordinal: usize) -> bool
Check if a column is encrypted.
Sourcepub fn get_encryption_type(&self, ordinal: usize) -> Option<EncryptionTypeWire>
pub fn get_encryption_type(&self, ordinal: usize) -> Option<EncryptionTypeWire>
Get the encryption type for a column.
Trait Implementations§
Source§impl Clone for ResultSetEncryptionInfo
impl Clone for ResultSetEncryptionInfo
Source§fn clone(&self) -> ResultSetEncryptionInfo
fn clone(&self) -> ResultSetEncryptionInfo
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 ResultSetEncryptionInfo
impl RefUnwindSafe for ResultSetEncryptionInfo
impl Send for ResultSetEncryptionInfo
impl Sync for ResultSetEncryptionInfo
impl Unpin for ResultSetEncryptionInfo
impl UnwindSafe for ResultSetEncryptionInfo
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