pub struct ColMetaData {
pub columns: Vec<ColumnData>,
pub cek_table: Option<CekTable>,
}Expand description
Column metadata token.
Fields§
§columns: Vec<ColumnData>Column definitions.
cek_table: Option<CekTable>CEK table for Always Encrypted result sets. Present only when the server sends encrypted column metadata.
Implementations§
Source§impl ColMetaData
impl ColMetaData
Sourcepub const NO_METADATA: u16 = 0xFFFF
pub const NO_METADATA: u16 = 0xFFFF
Special value indicating no metadata.
Sourcepub fn decode(src: &mut impl Buf) -> Result<Self, ProtocolError>
pub fn decode(src: &mut impl Buf) -> Result<Self, ProtocolError>
Decode a COLMETADATA token from bytes.
Sourcepub fn decode_encrypted(src: &mut impl Buf) -> Result<Self, ProtocolError>
pub fn decode_encrypted(src: &mut impl Buf) -> Result<Self, ProtocolError>
Decode a COLMETADATA token with Always Encrypted support.
When column encryption was negotiated in Login7, the server sends a CekTable before column definitions and per-column CryptoMetadata for encrypted columns.
§Wire Format (with encryption)
column_count: USHORT
cek_table: CekTable (always present when encryption negotiated)
columns: ColumnData[column_count] (with CryptoMetadata for encrypted columns)Sourcepub fn column_count(&self) -> usize
pub fn column_count(&self) -> usize
Get the number of columns.
Trait Implementations§
Source§impl Clone for ColMetaData
impl Clone for ColMetaData
Source§fn clone(&self) -> ColMetaData
fn clone(&self) -> ColMetaData
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 ColMetaData
impl Debug for ColMetaData
Source§impl Default for ColMetaData
impl Default for ColMetaData
Source§fn default() -> ColMetaData
fn default() -> ColMetaData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ColMetaData
impl RefUnwindSafe for ColMetaData
impl Send for ColMetaData
impl Sync for ColMetaData
impl Unpin for ColMetaData
impl UnsafeUnpin for ColMetaData
impl UnwindSafe for ColMetaData
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