pub trait BindFrom: Sized {
// Required methods
fn null() -> Self;
fn from_primitive<T: IsValue>(v: &T) -> Self;
fn from_timestamp(v: i64) -> Self;
fn from_varchar(v: &str) -> Self;
fn from_nchar(v: &str) -> Self;
fn from_json(v: &str) -> Self;
// Provided method
fn from_binary(v: &str) -> Self { ... }
}Required Methods§
fn null() -> Self
fn from_primitive<T: IsValue>(v: &T) -> Self
fn from_timestamp(v: i64) -> Self
fn from_varchar(v: &str) -> Self
fn from_nchar(v: &str) -> Self
fn from_json(v: &str) -> Self
Provided Methods§
fn from_binary(v: &str) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.