pub struct SubscribePayload {
pub query: String,
pub operation_name: Option<String>,
pub variables: HashMap<String, Value>,
pub extensions: HashMap<String, Value>,
}Expand description
Subscribe message payload.
Fields§
§query: StringGraphQL query string.
operation_name: Option<String>Optional operation name.
variables: HashMap<String, Value>Query variables.
extensions: HashMap<String, Value>Extensions (e.g., persisted query hash).
Trait Implementations§
Source§impl Clone for SubscribePayload
impl Clone for SubscribePayload
Source§fn clone(&self) -> SubscribePayload
fn clone(&self) -> SubscribePayload
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubscribePayload
impl Debug for SubscribePayload
Source§impl<'de> Deserialize<'de> for SubscribePayload
impl<'de> Deserialize<'de> for SubscribePayload
Source§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
Auto Trait Implementations§
impl Freeze for SubscribePayload
impl RefUnwindSafe for SubscribePayload
impl Send for SubscribePayload
impl Sync for SubscribePayload
impl Unpin for SubscribePayload
impl UnsafeUnpin for SubscribePayload
impl UnwindSafe for SubscribePayload
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