BindFrom

Trait BindFrom 

Source
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§

Source

fn null() -> Self

Source

fn from_primitive<T: IsValue>(v: &T) -> Self

Source

fn from_timestamp(v: i64) -> Self

Source

fn from_varchar(v: &str) -> Self

Source

fn from_nchar(v: &str) -> Self

Source

fn from_json(v: &str) -> Self

Provided Methods§

Source

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.

Implementors§