pub struct GraphQLRequest {
pub query: String,
pub variables: Option<Value>,
pub operation_name: Option<String>,
}Expand description
GraphQL request handling
Fields§
§query: String§variables: Option<Value>§operation_name: Option<String>Implementations§
Source§impl GraphQLRequest
impl GraphQLRequest
pub fn new(query: String) -> Self
pub fn with_variables(self, variables: Value) -> Self
pub fn with_operation(self, operation_name: String) -> Self
Auto Trait Implementations§
impl Freeze for GraphQLRequest
impl RefUnwindSafe for GraphQLRequest
impl Send for GraphQLRequest
impl Sync for GraphQLRequest
impl Unpin for GraphQLRequest
impl UnsafeUnpin for GraphQLRequest
impl UnwindSafe for GraphQLRequest
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> Injectable for T
impl<T> Injectable for T
Source§fn type_id_of() -> TypeIdwhere
Self: Sized,
fn type_id_of() -> TypeIdwhere
Self: Sized,
Returns the TypeId of this type (for internal use)
Source§fn type_name_of() -> &'static strwhere
Self: Sized,
fn type_name_of() -> &'static strwhere
Self: Sized,
Returns the type name for debugging