CastsTo

Trait CastsTo 

Source
pub trait CastsTo<ST>: FallibleCastsTo<ST> { }
Expand description

Marker trait: this SQL type (Self) can be cast to the target SQL type (ST) using CAST(expr AS target_sql_type)

Implementors§

Source§

impl CastsTo<Integer> for Bool

Source§

impl CastsTo<Json> for Jsonb

Source§

impl CastsTo<Jsonb> for Json

Source§

impl CastsTo<Text> for Bool

Source§

impl CastsTo<Text> for Date

Source§

impl CastsTo<Text> for Datetime

Available on crate feature mysql_backend only.
Source§

impl CastsTo<Text> for Json

Source§

impl CastsTo<Text> for Jsonb

Source§

impl CastsTo<Text> for Time

Source§

impl CastsTo<Text> for Uuid

Available on crate feature postgres_backend only.
Source§

impl<ST1, ST2> CastsTo<Nullable<ST2>> for Nullable<ST1>
where ST1: CastsTo<ST2>,