pub trait StringColumn: Sized {
// Required methods
fn to_column_str(&self) -> String;
fn from_column_str(s: &str) -> Result<Self>;
}Expand description
How a custom type maps to and from its stored string form. The string is
what lands in a TEXT/VARCHAR column.
Required Methods§
fn to_column_str(&self) -> String
fn from_column_str(s: &str) -> Result<Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".