Struct juniper_graphql_ws::StartPayload
source · [−]pub struct StartPayload<S: ScalarValue> {
pub query: String,
pub variables: Variables<S>,
pub operation_name: Option<String>,
}
Expand description
The payload for a client’s “start” message. This triggers execution of a query, mutation, or subscription.
Fields
query: String
The document body.
variables: Variables<S>
The optional variables.
operation_name: Option<String>
The optional operation name (required if the document contains multiple operations).
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.