pub struct CekTable {
pub entries: Vec<CekTableEntry>,
}Expand description
CEK table containing all Column Encryption Keys needed for a result set.
Fields§
§entries: Vec<CekTableEntry>CEK entries.
Implementations§
Source§impl CekTable
impl CekTable
Sourcepub fn get(&self, ordinal: u16) -> Option<&CekTableEntry>
pub fn get(&self, ordinal: u16) -> Option<&CekTableEntry>
Get a CEK entry by ordinal.
Sourcepub fn decode(src: &mut impl Buf) -> Result<Self, ProtocolError>
pub fn decode(src: &mut impl Buf) -> Result<Self, ProtocolError>
Decode a CEK table from the wire format.
§Wire Format
CEK_TABLE:
cek_count: USHORT (2 bytes)
entries: CEK_ENTRY[cek_count]
CEK_ENTRY:
database_id: DWORD (4 bytes)
cek_id: DWORD (4 bytes)
cek_version: DWORD (4 bytes)
cek_md_version: ULONGLONG (8 bytes)
value_count: BYTE (1 byte)
values: CEK_VALUE[value_count]
CEK_VALUE:
encrypted_value_length: USHORT (2 bytes)
encrypted_value: BYTE[encrypted_value_length]
key_store_name: B_VARCHAR
cmk_path: US_VARCHAR
algorithm: B_VARCHARTrait Implementations§
Auto Trait Implementations§
impl Freeze for CekTable
impl RefUnwindSafe for CekTable
impl Send for CekTable
impl Sync for CekTable
impl Unpin for CekTable
impl UnwindSafe for CekTable
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