pub trait QueryArg: Send + Sync + Sized {
    // Required methods
    fn encode_slot(&self, encoder: &mut Encoder<'_>) -> Result<(), Error>;
    fn check_descriptor(
        &self,
        ctx: &DescriptorContext<'_>,
        pos: TypePos
    ) -> Result<(), Error>;
    fn to_value(&self) -> Result<Value, Error>;
}
Expand description

A single argument for a query.

Required Methods§

source

fn encode_slot(&self, encoder: &mut Encoder<'_>) -> Result<(), Error>

source

fn check_descriptor( &self, ctx: &DescriptorContext<'_>, pos: TypePos ) -> Result<(), Error>

source

fn to_value(&self) -> Result<Value, Error>

Implementations on Foreign Types§

source§

impl<T: ScalarArg> QueryArg for Option<T>

source§

fn encode_slot(&self, enc: &mut Encoder<'_>) -> Result<(), Error>

source§

fn check_descriptor( &self, ctx: &DescriptorContext<'_>, pos: TypePos ) -> Result<(), Error>

source§

fn to_value(&self) -> Result<Value, Error>

source§

impl<T: ScalarArg> QueryArg for Vec<T>

source§

fn encode_slot(&self, enc: &mut Encoder<'_>) -> Result<(), Error>

source§

fn check_descriptor( &self, ctx: &DescriptorContext<'_>, pos: TypePos ) -> Result<(), Error>

source§

fn to_value(&self) -> Result<Value, Error>

source§

impl QueryArg for Vec<Value>

source§

fn encode_slot(&self, enc: &mut Encoder<'_>) -> Result<(), Error>

source§

fn check_descriptor( &self, ctx: &DescriptorContext<'_>, pos: TypePos ) -> Result<(), Error>

source§

fn to_value(&self) -> Result<Value, Error>

Implementors§