GoodOrmningCustomBytes

Trait GoodOrmningCustomBytes 

Source
pub trait GoodOrmningCustomBytes<T> {
    // Required methods
    fn to_sql<'a>(value: &'a T) -> Vec<u8> ;
    fn from_sql(value: Vec<u8>) -> Result<T, String>;
}

Required Methods§

Source

fn to_sql<'a>(value: &'a T) -> Vec<u8>

Source

fn from_sql(value: Vec<u8>) -> Result<T, String>

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§