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§

source

fn new(v: Value) -> Result<Self, FromValueError>

source

fn commit(self) -> T

source

fn rollback(self) -> Value

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ConvIr<String> for Vec<u8>

source§

impl ConvIr<Vec<u8>> for Vec<u8>

Implementors§

source§

impl ConvIr<Value> for JsonIr

source§

impl ConvIr<Value> for Value

source§

impl ConvIr<bool> for ParseIr<bool>

source§

impl ConvIr<f32> for ParseIr<f32>

source§

impl ConvIr<f64> for ParseIr<f64>

source§

impl ConvIr<i8> for ParseIr<i8>

source§

impl ConvIr<i16> for ParseIr<i16>

source§

impl ConvIr<i32> for ParseIr<i32>

source§

impl ConvIr<i64> for ParseIr<i64>

source§

impl ConvIr<i128> for ParseIr<i128>

source§

impl ConvIr<isize> for ParseIr<isize>

source§

impl ConvIr<u8> for ParseIr<u8>

source§

impl ConvIr<u16> for ParseIr<u16>

source§

impl ConvIr<u32> for ParseIr<u32>

source§

impl ConvIr<u64> for ParseIr<u64>

source§

impl ConvIr<u128> for ParseIr<u128>

source§

impl ConvIr<usize> for ParseIr<usize>

source§

impl ConvIr<BigDecimal> for ParseIr<BigDecimal>

source§

impl ConvIr<BigInt> for ParseIr<BigInt>

source§

impl ConvIr<BigUint> for ParseIr<BigUint>

source§

impl ConvIr<Decimal> for ParseIr<Decimal>

source§

impl ConvIr<Date> for ParseIr<Date>

Converts a MySQL DATE value to a time03::Date.

source§

impl ConvIr<Duration> for ParseIr<Duration>

source§

impl ConvIr<PrimitiveDateTime> for ParseIr<PrimitiveDateTime>

source§

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.

source§

impl ConvIr<Uuid> for UuidIr

source§

impl ConvIr<Duration> for ParseIr<Duration>

source§

impl<T> ConvIr<Deserialized<T>> for DeserializedIr<T>where T: DeserializeOwned,

source§

impl<T, Ir> ConvIr<Option<T>> for OptionIr<Ir>where T: FromValue<Intermediate = Ir>, Ir: ConvIr<T>,