Skip to main content

RuntimeValueEncode

Trait RuntimeValueEncode 

Source
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, storage-key encoding, or any other persistence/storage encoding path.

Required Methods§

Source

fn to_value(&self) -> Value

Implementations on Foreign Types§

Source§

impl RuntimeValueEncode for &str

Source§

fn to_value(&self) -> Value

Source§

impl RuntimeValueEncode for bool

Source§

fn to_value(&self) -> Value

Source§

impl RuntimeValueEncode for i8

Source§

fn to_value(&self) -> Value

Source§

impl RuntimeValueEncode for i16

Source§

fn to_value(&self) -> Value

Source§

impl RuntimeValueEncode for i32

Source§

fn to_value(&self) -> Value

Source§

impl RuntimeValueEncode for i64

Source§

fn to_value(&self) -> Value

Source§

impl RuntimeValueEncode for u8

Source§

fn to_value(&self) -> Value

Source§

impl RuntimeValueEncode for u16

Source§

fn to_value(&self) -> Value

Source§

impl RuntimeValueEncode for u32

Source§

fn to_value(&self) -> Value

Source§

impl RuntimeValueEncode for u64

Source§

fn to_value(&self) -> Value

Source§

impl RuntimeValueEncode for ()

Source§

fn to_value(&self) -> Value

Source§

impl RuntimeValueEncode for String

Source§

fn to_value(&self) -> Value

Source§

impl RuntimeValueEncode for Principal

Source§

fn to_value(&self) -> Value

Source§

impl<K, V> RuntimeValueEncode for BTreeMap<K, V>

Source§

fn to_value(&self) -> Value

Source§

impl<T> RuntimeValueEncode for BTreeSet<T>

Source§

fn to_value(&self) -> Value

Source§

impl<T: RuntimeValueEncode> RuntimeValueEncode for Option<T>

Source§

fn to_value(&self) -> Value

Source§

impl<T: RuntimeValueEncode> RuntimeValueEncode for Box<T>

Source§

fn to_value(&self) -> Value

Source§

impl<T: RuntimeValueEncode> RuntimeValueEncode for Vec<T>

Source§

fn to_value(&self) -> Value

Implementors§