pub trait ToValue {
// Required method
fn to_value(self) -> Value;
}Expand description
Conversion into a bound argument.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<Tz: TimeZone> ToValue for DateTime<Tz>
Any zoned datetime — Utc, FixedOffset, Local — binds as the
instant it names, normalised to UTC. The offset is dropped because no
target database stores one; an application that needs the original
offset keeps it in its own column.
impl<Tz: TimeZone> ToValue for DateTime<Tz>
Any zoned datetime — Utc, FixedOffset, Local — binds as the
instant it names, normalised to UTC. The offset is dropped because no
target database stores one; an application that needs the original
offset keeps it in its own column.