pub struct Query { /* private fields */ }Expand description
Represents a database query within the rincon driver.
This struct holds the AQL query string and the query parameters needed to call the ArangoDB server to execute the database query.
Implementations§
Source§impl Query
impl Query
Sourcepub fn unwrap(self) -> (String, HashMap<String, Value>)
pub fn unwrap(self) -> (String, HashMap<String, Value>)
Moves the fields out of the Query struct to reuse their values
without cloning them.
After calling this function this Query instance is invalid.
Sourcepub fn set_parameter<N, T>(&mut self, name: N, value: T)
pub fn set_parameter<N, T>(&mut self, name: N, value: T)
Sets the value of a named parameter.
Trait Implementations§
impl StructuralPartialEq for Query
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnwindSafe for Query
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more