pub trait CastTarget<'a, T: DataType, D> {
// Required method
fn cast_type_name(self) -> &'a str;
}Expand description
Input accepted by cast.
You can pass:
- a SQL type string (dialect-specific), or
- a type marker value (uses that marker’s default SQL cast name).
Required Methods§
fn cast_type_name(self) -> &'a str
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".