Struct rusted_cypher::cypher::statement::Statement [] [src]

pub struct Statement { /* fields omitted */ }

Represents a statement to be sent to the server

Methods

impl Statement
[src]

Returns the statement text

Adds parameter to the Statement

The parameter value is serialized into a Value. Since the serialization can fail, the method returns a Result

Adds parameter in builder style

This method consumes self and returns it with the parameter added, so the binding does not need to be mutable

Examples

let statement = Statement::new("MATCH n RETURN n")
    .with_param("param1", "value1")?
    .with_param("param2", 2)?
    .with_param("param3", 3.0)?;

Gets the value of the parameter

Returns None if there is no parameter with the given name or Some(serde_json::error::Error)if the parameter cannot be converted back fromserde_json::value::Value`

Gets a reference to the underlying parameters BTreeMap

Sets the parameters BTreeMap, overriding current values

Removes parameter from the statment

Trying to remove a non-existent parameter has no effect

Trait Implementations

impl Clone for Statement
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Statement
[src]

Formats the value using the given formatter.

impl<T: Into<String>> From<T> for Statement
[src]

Performs the conversion.