pub struct CekTableEntry {
pub database_id: u32,
pub cek_id: u32,
pub cek_version: u32,
pub cek_md_version: u64,
pub values: Vec<CekValue>,
}Expand description
Column Encryption Key table entry.
This represents a single CEK entry in the CEK table sent with COLMETADATA. Multiple columns may share the same CEK.
Fields§
§database_id: u32Database ID where the CEK is defined.
cek_id: u32CEK ID within the database.
cek_version: u32CEK version (incremented on key rotation).
cek_md_version: u64Metadata version (changes with any metadata update).
values: Vec<CekValue>CEK value entries (usually one, but may have multiple for key rotation).
Implementations§
Source§impl CekTableEntry
impl CekTableEntry
Sourcepub fn decode(src: &mut impl Buf) -> Result<Self, ProtocolError>
pub fn decode(src: &mut impl Buf) -> Result<Self, ProtocolError>
Decode a CEK table entry from the wire format.
Sourcepub fn primary_value(&self) -> Option<&CekValue>
pub fn primary_value(&self) -> Option<&CekValue>
Get the first (primary) encrypted value.
Trait Implementations§
Source§impl Clone for CekTableEntry
impl Clone for CekTableEntry
Source§fn clone(&self) -> CekTableEntry
fn clone(&self) -> CekTableEntry
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 CekTableEntry
impl RefUnwindSafe for CekTableEntry
impl Send for CekTableEntry
impl Sync for CekTableEntry
impl Unpin for CekTableEntry
impl UnwindSafe for CekTableEntry
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