pub trait ToParam {
// Required method
fn to_param(&self) -> Value;
}Expand description
Trait for types that can be converted to SQL parameters
This trait is automatically implemented for common Rust types.
It enables the params! macro and tuple parameter syntax.
Platform-sized unsigned integers require an explicit checked conversion,
because RadixDB integer parameters use the signed i64 domain:
ⓘ
use radixdb::ToParam;
let _ = usize::MAX.to_param();Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".