Skip to main content

FieldValue

Trait FieldValue 

Source
pub trait FieldValue {
    // Required methods
    fn kind() -> FieldValueKind
       where Self: Sized;
    fn to_value(&self) -> Value;
    fn from_value(value: &Value) -> Option<Self>
       where Self: Sized;
}
Expand description

FieldValue

Conversion boundary for values used in query predicates.

Represents values that can appear on the right-hand side of predicates.

Required Methods§

Source

fn kind() -> FieldValueKind
where Self: Sized,

Source

fn to_value(&self) -> Value

Source

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

Implementations on Foreign Types§

Source§

impl FieldValue for &str

Source§

impl FieldValue for bool

Source§

impl FieldValue for i8

Source§

impl FieldValue for i16

Source§

impl FieldValue for i32

Source§

impl FieldValue for i64

Source§

impl FieldValue for u8

Source§

impl FieldValue for u16

Source§

impl FieldValue for u32

Source§

impl FieldValue for u64

Source§

impl FieldValue for ()

Source§

impl FieldValue for String

Source§

impl FieldValue for Principal

Source§

impl<T: FieldValue> FieldValue for Option<T>

Source§

impl<T: FieldValue> FieldValue for Box<T>

Source§

impl<T: FieldValue> FieldValue for Vec<Box<T>>

Implementors§