pub trait RuntimeValueEncode {
// Required method
fn to_value(&self) -> Value;
}Expand description
RuntimeValueEncode
Narrow runtime lowering boundary for typed value surfaces that can be
projected into the internal Value union.
This is the encode-side owner used by generated wrappers and shared helper
paths that only need one-way lowering.
It is runtime-only and MUST NOT be used for persisted-row codecs,
primary-key encoding, or any other persistence/storage encoding path.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".