pub struct QueryBuilder { /* private fields */ }Expand description
Query builder for GQL
Implementations§
Source§impl QueryBuilder
impl QueryBuilder
pub fn new() -> Self
pub fn match_pattern(self, pattern: &str) -> Self
pub fn optional_match(self, pattern: &str) -> Self
pub fn where_clause(self, condition: &str) -> Self
pub fn with(self, expressions: &[&str]) -> Self
pub fn return_(self, expressions: &[&str]) -> Self
pub fn order_by(self, expressions: &[&str]) -> Self
pub fn limit(self, n: usize) -> Self
pub fn with_param<V: Serialize>(self, name: &str, value: V) -> Self
pub fn build(self) -> (String, HashMap<String, Value>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueryBuilder
impl RefUnwindSafe for QueryBuilder
impl Send for QueryBuilder
impl Sync for QueryBuilder
impl Unpin for QueryBuilder
impl UnwindSafe for QueryBuilder
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request