Struct reql::Arg [] [src]

pub struct Arg { /* fields omitted */ }

The return type of ToArg::to_arg

Methods

impl Arg
[src]

Create a new command argument

This is the return type of the ToArg trait. You need to use Arg::new to create an argument when implementing that trait for any additional types that you want to pass to ReQL commands.

ReQL commands are represented as terms so you must first convert your argument to a term and pass it as term to this method. For debugging and logging purposes, this method also requires that you pass the string representation of your argument i.e. as_str.

Trait Implementations

impl Debug for Arg
[src]

Formats the value using the given formatter.

impl Clone for Arg
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more