pub struct TypedQuery {
pub cypher: String,
pub params: HashMap<String, String>,
}Fields§
§cypher: String§params: HashMap<String, String>Implementations§
Source§impl TypedQuery
impl TypedQuery
pub fn new(cypher: impl Into<String>) -> Self
pub fn with_params<I, K>( cypher: impl Into<String>, params: I, ) -> Result<Self, TypedQueryError>
pub fn insert_param( &mut self, name: impl Into<String>, value: TypedValue, ) -> Result<(), TypedQueryError>
Trait Implementations§
Source§impl Clone for TypedQuery
impl Clone for TypedQuery
Source§fn clone(&self) -> TypedQuery
fn clone(&self) -> TypedQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypedQuery
impl Debug for TypedQuery
Source§impl<'de> Deserialize<'de> for TypedQuery
impl<'de> Deserialize<'de> for TypedQuery
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TypedQuery
impl PartialEq for TypedQuery
Source§fn eq(&self, other: &TypedQuery) -> bool
fn eq(&self, other: &TypedQuery) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TypedQuery
impl Serialize for TypedQuery
impl Eq for TypedQuery
impl StructuralPartialEq for TypedQuery
Auto Trait Implementations§
impl Freeze for TypedQuery
impl RefUnwindSafe for TypedQuery
impl Send for TypedQuery
impl Sync for TypedQuery
impl Unpin for TypedQuery
impl UnsafeUnpin for TypedQuery
impl UnwindSafe for TypedQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.