Trait mysql_common::value::convert::ConvIr
source · pub trait ConvIr<T>: Sized {
// Required methods
fn new(v: Value) -> Result<Self, FromValueError>;
fn commit(self) -> T;
fn rollback(self) -> Value;
}
Expand description
Basic operations on FromValue
conversion intermediate result.
See FromValue
Required Methods§
fn new(v: Value) -> Result<Self, FromValueError>
fn commit(self) -> T
fn rollback(self) -> Value
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
Implementors§
impl ConvIr<Value> for JsonIr
impl ConvIr<Value> for Value
impl ConvIr<bool> for ParseIr<bool>
impl ConvIr<f32> for ParseIr<f32>
impl ConvIr<f64> for ParseIr<f64>
impl ConvIr<i8> for ParseIr<i8>
impl ConvIr<i16> for ParseIr<i16>
impl ConvIr<i32> for ParseIr<i32>
impl ConvIr<i64> for ParseIr<i64>
impl ConvIr<i128> for ParseIr<i128>
impl ConvIr<isize> for ParseIr<isize>
impl ConvIr<u8> for ParseIr<u8>
impl ConvIr<u16> for ParseIr<u16>
impl ConvIr<u32> for ParseIr<u32>
impl ConvIr<u64> for ParseIr<u64>
impl ConvIr<u128> for ParseIr<u128>
impl ConvIr<usize> for ParseIr<usize>
impl ConvIr<BigDecimal> for ParseIr<BigDecimal>
impl ConvIr<BigInt> for ParseIr<BigInt>
impl ConvIr<BigUint> for ParseIr<BigUint>
impl ConvIr<Decimal> for ParseIr<Decimal>
impl ConvIr<Date> for ParseIr<Date>
Converts a MySQL DATE
value to a time03::Date
.
impl ConvIr<Duration> for ParseIr<Duration>
impl ConvIr<PrimitiveDateTime> for ParseIr<PrimitiveDateTime>
impl ConvIr<Time> for ParseIr<Time>
Converts a MySQL TIME
value to a time03::Time
.
Note: time03::Time
only allows for time values in the 00:00:00 - 23:59:59 range.
If you’re expecting TIME
values in MySQL’s TIME
value range of -838:59:59 - 838:59:59,
use time03::Duration instead.