Struct nash_protocol::protocol::multi_request::DynamicQueryBody [−][src]
pub struct DynamicQueryBody {
pub variables: HashMap<String, Value>,
pub query: String,
pub operation_name: &'static str,
}Expand description
The form in which queries are sent over HTTP in most implementations. This will be built using the [GraphQLQuery] trait normally.
Fields
variables: HashMap<String, Value>The values for the variables. They must match those declared in the queries. This should be the Variables struct from the generated module corresponding to the query.
query: StringThe GraphQL query, as a string.
operation_name: &'static strThe GraphQL operation name, as a string.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for DynamicQueryBody
impl Send for DynamicQueryBody
impl Sync for DynamicQueryBody
impl Unpin for DynamicQueryBody
impl UnwindSafe for DynamicQueryBody
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more