pub struct Document(/* private fields */);
Expand description
A (raw) GraphQL request document.
This type is a wrapper around a string that represents a GraphQL request document. This type does not perform any validation on the string.
Implementations§
Trait Implementations§
Source§impl IntoDocument for Document
impl IntoDocument for Document
Source§fn into_document(self) -> Document
fn into_document(self) -> Document
Consumes
self
and returns a Document
.impl Eq for Document
impl StructuralPartialEq for Document
Auto Trait Implementations§
impl Freeze for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnwindSafe for Document
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoDocumentWithVariables for Twhere
T: IntoDocument,
impl<T> IntoDocumentWithVariables for Twhere
T: IntoDocument,
type Variables = ()
Source§fn into_document_with_variables(
self,
) -> (Document, <T as IntoDocumentWithVariables>::Variables)
fn into_document_with_variables( self, ) -> (Document, <T as IntoDocumentWithVariables>::Variables)
Consumes
self
and returns a query and variables tuple.Source§impl<T> IntoRequestParameters for Twhere
T: IntoDocumentWithVariables,
impl<T> IntoRequestParameters for Twhere
T: IntoDocumentWithVariables,
Source§fn into_request_parameters(self) -> RequestParameters
fn into_request_parameters(self) -> RequestParameters
Consumes
self
and returns a RequestParameters
struct.Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.