Struct reql::Arg
[−]
[src]
pub struct Arg { /* fields omitted */ }
The return type of ToArg::to_arg
Methods
impl Arg
[src]
fn new(term: Term, as_str: &str) -> Arg
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 term
s 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]
impl Clone for Arg
[src]
fn clone(&self) -> Arg
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more