pub struct BinlogColumnMeta {
pub column_type: u8,
pub is_unsigned: bool,
pub type_metadata: u16,
pub is_pk: bool,
pub pk_ordinal: Option<usize>,
}Expand description
Column metadata for a binlog row image column.
Fields§
§column_type: u8MySQL protocol type code (1=TINY, 2=SHORT, 3=LONG, 8=LONGLONG, 15=VARCHAR, etc.).
is_unsigned: boolWhether the column is unsigned.
type_metadata: u16Type-specific metadata (max length for VARCHAR, display size for INT, etc.).
is_pk: boolWhether this column is part of the primary key.
pk_ordinal: Option<usize>Ordinal position within the PK (0-based), if is_pk is true.
Trait Implementations§
Source§impl Clone for BinlogColumnMeta
impl Clone for BinlogColumnMeta
Source§fn clone(&self) -> BinlogColumnMeta
fn clone(&self) -> BinlogColumnMeta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BinlogColumnMeta
impl Debug for BinlogColumnMeta
Auto Trait Implementations§
impl Freeze for BinlogColumnMeta
impl RefUnwindSafe for BinlogColumnMeta
impl Send for BinlogColumnMeta
impl Sync for BinlogColumnMeta
impl Unpin for BinlogColumnMeta
impl UnsafeUnpin for BinlogColumnMeta
impl UnwindSafe for BinlogColumnMeta
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more