Trait sea_query::value::ValueType

source ยท
pub trait ValueType: Sized {
    // Required methods
    fn try_from(v: Value) -> Result<Self, ValueTypeErr>;
    fn type_name() -> String;
    fn array_type() -> ArrayType;
    fn column_type() -> ColumnType;

    // Provided methods
    fn unwrap(v: Value) -> Self { ... }
    fn expect(v: Value, msg: &str) -> Self { ... }
}

Required Methodsยง

Provided Methodsยง

source

fn unwrap(v: Value) -> Self

source

fn expect(v: Value, msg: &str) -> Self

Object Safetyยง

This trait is not object safe.

Implementations on Foreign Typesยง

sourceยง

impl ValueType for Cow<'_, str>

sourceยง

impl ValueType for IpNetwork

Available on crate feature with-ipnetwork only.
sourceยง

impl ValueType for Value

Available on crate feature with-json only.
sourceยง

impl ValueType for bool

sourceยง

impl ValueType for char

sourceยง

impl ValueType for f32

sourceยง

impl ValueType for f64

sourceยง

impl ValueType for i8

sourceยง

impl ValueType for i16

sourceยง

impl ValueType for i32

sourceยง

impl ValueType for i64

sourceยง

impl ValueType for u8

sourceยง

impl ValueType for u16

sourceยง

impl ValueType for u32

sourceยง

impl ValueType for u64

sourceยง

impl ValueType for String

sourceยง

impl ValueType for Vec<u8>

sourceยง

impl ValueType for BigDecimal

Available on crate feature with-bigdecimal only.
sourceยง

impl ValueType for DateTime<FixedOffset>

Available on crate feature with-chrono only.
sourceยง

impl ValueType for DateTime<Local>

Available on crate feature with-chrono only.
sourceยง

impl ValueType for DateTime<Utc>

Available on crate feature with-chrono only.
sourceยง

impl ValueType for NaiveDate

Available on crate feature with-chrono only.
sourceยง

impl ValueType for NaiveDateTime

Available on crate feature with-chrono only.
sourceยง

impl ValueType for NaiveTime

Available on crate feature with-chrono only.
sourceยง

impl ValueType for MacAddress

Available on crate feature with-mac_address only.
sourceยง

impl ValueType for Decimal

Available on crate feature with-rust_decimal only.
sourceยง

impl ValueType for Date

Available on crate feature with-time only.
sourceยง

impl ValueType for OffsetDateTime

Available on crate feature with-time only.
sourceยง

impl ValueType for PrimitiveDateTime

Available on crate feature with-time only.
sourceยง

impl ValueType for Time

Available on crate feature with-time only.
sourceยง

impl ValueType for Braced

Available on crate feature with-uuid only.
sourceยง

impl ValueType for Hyphenated

Available on crate feature with-uuid only.
sourceยง

impl ValueType for Simple

Available on crate feature with-uuid only.
sourceยง

impl ValueType for Urn

Available on crate feature with-uuid only.
sourceยง

impl ValueType for Uuid

Available on crate feature with-uuid only.
sourceยง

impl<T> ValueType for Option<T>
where T: ValueType + Nullable,

sourceยง

impl<T> ValueType for Vec<T>
where T: NotU8 + ValueType,

Available on crate feature postgres-array only.

Implementorsยง