[−][src]Enum juniper_graphql_ws::ClientMessage
ClientMessage defines the message types that clients can send.
Variants
ConnectionInit is sent by the client upon connecting.
Fields of ConnectionInit
payload: Variables<S>
Optional parameters of any type sent from the client. These are often used for authentication.
Start messages are used to execute a GraphQL operation.
Fields of Start
id: String
The id of the operation. This can be anything, but must be unique. If there are other in-flight operations with the same id, the message will be ignored or cause an error.
payload: StartPayload<S>
The query, variables, and operation name.
Stop messages are used to unsubscribe from a subscription.
Fields of Stop
id: String
The id of the operation to stop.
ConnectionTerminate is used to terminate the connection.
Trait Implementations
impl<S: Debug + ScalarValue> Debug for ClientMessage<S>
[src]
impl<'de, S: ScalarValue> Deserialize<'de> for ClientMessage<S> where
S: ScalarValue,
[src]
S: ScalarValue,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<S: PartialEq + ScalarValue> PartialEq<ClientMessage<S>> for ClientMessage<S>
[src]
fn eq(&self, other: &ClientMessage<S>) -> bool
[src]
fn ne(&self, other: &ClientMessage<S>) -> bool
[src]
impl<S: ScalarValue> StructuralPartialEq for ClientMessage<S>
[src]
Auto Trait Implementations
impl<S> RefUnwindSafe for ClientMessage<S> where
S: RefUnwindSafe,
[src]
S: RefUnwindSafe,
impl<S> Send for ClientMessage<S> where
S: Send,
[src]
S: Send,
impl<S> Sync for ClientMessage<S> where
S: Sync,
[src]
S: Sync,
impl<S> Unpin for ClientMessage<S> where
S: Unpin,
[src]
S: Unpin,
impl<S> UnwindSafe for ClientMessage<S> where
S: UnwindSafe,
[src]
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,