pub struct GraphQuery {
pub query: &'static str,
pub params: Vec<(&'static str, Parameter)>,
pub read_only: bool,
}Expand description
Contains information for constructing the query.
Primarily generated by the [query] macro
Fields§
§query: &'static strThe static query string
params: Vec<(&'static str, Parameter)>The dynamic Parameters to the query
read_only: boolWhether or not the request should be read only
Implementations§
Source§impl GraphQuery
impl GraphQuery
Sourcepub fn add_parameter<T: Into<Parameter>>(
&mut self,
key: &'static str,
value: T,
) -> &mut GraphQuery
pub fn add_parameter<T: Into<Parameter>>( &mut self, key: &'static str, value: T, ) -> &mut GraphQuery
Adds a Parameter to the Parameter list that is escaped in the query
Sourcepub fn read_only(&mut self, read_only: bool) -> &mut GraphQuery
pub fn read_only(&mut self, read_only: bool) -> &mut GraphQuery
Set read only
Trait Implementations§
Source§impl Debug for GraphQuery
impl Debug for GraphQuery
Source§impl From<&'static str> for GraphQuery
impl From<&'static str> for GraphQuery
Source§impl PartialEq for GraphQuery
impl PartialEq for GraphQuery
impl StructuralPartialEq for GraphQuery
Auto Trait Implementations§
impl Freeze for GraphQuery
impl RefUnwindSafe for GraphQuery
impl Send for GraphQuery
impl Sync for GraphQuery
impl Unpin for GraphQuery
impl UnwindSafe for GraphQuery
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