pub enum MySQLValue {
Show 14 variants
SignedInteger(i64),
Float(f32),
Double(f64),
String(String),
Enum(i16),
Blob(Blob),
Year(u32),
Date {
year: u32,
month: u32,
day: u32,
},
Time {
hours: u32,
minutes: u32,
seconds: u32,
subseconds: u32,
},
DateTime {
year: u32,
month: u32,
day: u32,
hour: u32,
minute: u32,
second: u32,
subsecond: u32,
},
Json(Value),
Decimal(BigDecimal),
Timestamp {
unix_time: i32,
subsecond: u32,
},
Null,
}
Expand description
Normalized representation of types which are present in MySQL
Variants§
SignedInteger(i64)
Float(f32)
Double(f64)
String(String)
Enum(i16)
Blob(Blob)
Year(u32)
Date
Time
DateTime
Json(Value)
Decimal(BigDecimal)
Timestamp
Null
Trait Implementations§
Source§impl Debug for MySQLValue
impl Debug for MySQLValue
Auto Trait Implementations§
impl Freeze for MySQLValue
impl RefUnwindSafe for MySQLValue
impl Send for MySQLValue
impl Sync for MySQLValue
impl Unpin for MySQLValue
impl UnwindSafe for MySQLValue
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