pub enum ColumnValue {
Show 23 variants
None,
Tiny(i8),
UnsignedTiny(u8),
Short(i16),
UnsignedShort(u16),
Long(i32),
UnsignedLong(u32),
LongLong(i64),
UnsignedLongLong(u64),
Float(f32),
Double(f64),
Decimal(String),
Time(String),
Date(String),
DateTime(String),
Timestamp(i64),
Year(u16),
String(Vec<u8>),
Blob(Vec<u8>),
Bit(u64),
Set(u64),
Enum(u32),
Json(Vec<u8>),
}
Variants§
None
Tiny(i8)
UnsignedTiny(u8)
Short(i16)
UnsignedShort(u16)
Long(i32)
UnsignedLong(u32)
LongLong(i64)
UnsignedLongLong(u64)
Float(f32)
Double(f64)
Decimal(String)
Time(String)
Date(String)
DateTime(String)
Timestamp(i64)
Year(u16)
String(Vec<u8>)
Blob(Vec<u8>)
Bit(u64)
Set(u64)
Enum(u32)
Json(Vec<u8>)
Implementations§
source§impl ColumnValue
impl ColumnValue
pub fn parse( cursor: &mut Cursor<&Vec<u8>>, column_type: ColumnType, column_meta: u16, column_length: u16 ) -> Result<Self, BinlogError>
pub fn parse_decimal( cursor: &mut Cursor<&Vec<u8>>, precision: usize, scale: usize ) -> Result<String, BinlogError>
Trait Implementations§
source§impl Clone for ColumnValue
impl Clone for ColumnValue
source§fn clone(&self) -> ColumnValue
fn clone(&self) -> ColumnValue
Returns a copy 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 ColumnValue
impl Debug for ColumnValue
source§impl<'de> Deserialize<'de> for ColumnValue
impl<'de> Deserialize<'de> for ColumnValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ColumnValue
impl PartialEq for ColumnValue
source§fn eq(&self, other: &ColumnValue) -> bool
fn eq(&self, other: &ColumnValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ColumnValue
impl Serialize for ColumnValue
impl StructuralPartialEq for ColumnValue
Auto Trait Implementations§
impl RefUnwindSafe for ColumnValue
impl Send for ColumnValue
impl Sync for ColumnValue
impl Unpin for ColumnValue
impl UnwindSafe for ColumnValue
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