Skip to main content

RuntimeValueDecode

Trait RuntimeValueDecode 

Source
pub trait RuntimeValueDecode {
    // Required method
    fn from_value(value: &Value) -> Option<Self>
       where Self: Sized;
}
Expand description

RuntimeValueDecode

Narrow runtime reconstruction boundary for typed value surfaces that can be rebuilt from the internal Value union. This is the decode-side owner used by generated wrappers and shared helper paths that only need one-way typed reconstruction. It is runtime-only and MUST NOT be used for persisted-row codecs, storage-key decoding, or any other persistence/storage encoding path.

Required Methods§

Source

fn from_value(value: &Value) -> Option<Self>
where Self: Sized,

Implementations on Foreign Types§

Source§

impl RuntimeValueDecode for &str

Source§

fn from_value(_value: &Value) -> Option<Self>

Source§

impl RuntimeValueDecode for bool

Source§

fn from_value(value: &Value) -> Option<Self>

Source§

impl RuntimeValueDecode for i8

Source§

fn from_value(value: &Value) -> Option<Self>

Source§

impl RuntimeValueDecode for i16

Source§

fn from_value(value: &Value) -> Option<Self>

Source§

impl RuntimeValueDecode for i32

Source§

fn from_value(value: &Value) -> Option<Self>

Source§

impl RuntimeValueDecode for i64

Source§

fn from_value(value: &Value) -> Option<Self>

Source§

impl RuntimeValueDecode for u8

Source§

fn from_value(value: &Value) -> Option<Self>

Source§

impl RuntimeValueDecode for u16

Source§

fn from_value(value: &Value) -> Option<Self>

Source§

impl RuntimeValueDecode for u32

Source§

fn from_value(value: &Value) -> Option<Self>

Source§

impl RuntimeValueDecode for u64

Source§

fn from_value(value: &Value) -> Option<Self>

Source§

impl RuntimeValueDecode for ()

Source§

fn from_value(value: &Value) -> Option<Self>

Source§

impl RuntimeValueDecode for String

Source§

fn from_value(value: &Value) -> Option<Self>

Source§

impl RuntimeValueDecode for Principal

Source§

fn from_value(value: &Value) -> Option<Self>

Source§

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

Source§

fn from_value(value: &Value) -> Option<Self>

Source§

impl<T> RuntimeValueDecode for BTreeSet<T>

Source§

fn from_value(value: &Value) -> Option<Self>

Source§

impl<T: RuntimeValueDecode> RuntimeValueDecode for Option<T>

Source§

fn from_value(value: &Value) -> Option<Self>

Source§

impl<T: RuntimeValueDecode> RuntimeValueDecode for Box<T>

Source§

fn from_value(value: &Value) -> Option<Self>

Source§

impl<T: RuntimeValueDecode> RuntimeValueDecode for Vec<T>

Source§

fn from_value(value: &Value) -> Option<Self>

Implementors§