Skip to main content

FieldValue

Trait FieldValue 

Source
pub trait FieldValue {
    // Provided method
    fn to_value(&self) -> Value { ... }
}
Expand description

FieldValue

Conversion boundary for values used in query predicates.

FieldValue represents any value that can appear on the right-hand side of a predicate (e.g. field == value, field IN values). Implementations convert Rust values into owned Value instances that are stored inside query plans and executed later.

Provided Methods§

Source

fn to_value(&self) -> Value

Implementations on Foreign Types§

Source§

impl FieldValue for &str

Source§

fn to_value(&self) -> Value

Source§

impl FieldValue for bool

Source§

fn to_value(&self) -> Value

Source§

impl FieldValue for i8

Source§

fn to_value(&self) -> Value

Source§

impl FieldValue for i16

Source§

fn to_value(&self) -> Value

Source§

impl FieldValue for i32

Source§

fn to_value(&self) -> Value

Source§

impl FieldValue for i64

Source§

fn to_value(&self) -> Value

Source§

impl FieldValue for u8

Source§

fn to_value(&self) -> Value

Source§

impl FieldValue for u16

Source§

fn to_value(&self) -> Value

Source§

impl FieldValue for u32

Source§

fn to_value(&self) -> Value

Source§

impl FieldValue for u64

Source§

fn to_value(&self) -> Value

Source§

impl FieldValue for ()

Source§

fn to_value(&self) -> Value

Source§

impl FieldValue for String

Source§

fn to_value(&self) -> Value

Source§

impl FieldValue for Principal

Source§

fn to_value(&self) -> Value

Source§

impl<T> FieldValue for &T
where T: FieldValue + Copy,

Source§

fn to_value(&self) -> Value

Source§

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

Source§

fn to_value(&self) -> Value

Source§

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

Source§

fn to_value(&self) -> Value

Source§

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

Source§

fn to_value(&self) -> Value

Implementors§