Trait reql::command::IntoCommandArg [] [src]

pub trait IntoCommandArg: Debug {
    fn to_arg(&self) -> Result<(Argument, Options)>;
}

A type that can be passed into a ReQL command

Required Methods

Defines how a type can be safely passed into a command.

A successful result returns a tuple as (argument, options). An argument is the main argument that is mandatory for commands that do accept at least one argument. Options is a map of optional options that a command can accept.

Both arguments and options are returned as serialised strings.

Implementors