Struct GraphQLResponse

Source
pub struct GraphQLResponse<T, CtxT, S: ScalarValue = DefaultScalarValue> { /* private fields */ }
Expand description

The type representing the result from the executing a GraphQL request.

Trait Implementations§

Source§

impl<T: Debug, CtxT: Debug, S: Debug + ScalarValue> Debug for GraphQLResponse<T, CtxT, S>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T, CtxT, S> Responder for GraphQLResponse<T, CtxT, S>
where T: Schema<S> + Send + 'static, CtxT: AsRef<T::Context> + Send + 'static, S: ScalarValue + Send + 'static, for<'a> &'a S: ScalarRefValue<'a>,

Source§

type Response = Response<Vec<u8>>

The type of response
Source§

type Error = Error

The error type which will be returned from respond_to.
Source§

type Respond = GraphQLRespond

The type of Future which will be returned from respond_to.
Source§

fn respond(self) -> Self::Respond

Converts itself into a TryFuture that will be resolved as a Response.

Auto Trait Implementations§

§

impl<T, CtxT, S> Freeze for GraphQLResponse<T, CtxT, S>
where T: Freeze, CtxT: Freeze, S: Freeze,

§

impl<T, CtxT, S> RefUnwindSafe for GraphQLResponse<T, CtxT, S>

§

impl<T, CtxT, S> Send for GraphQLResponse<T, CtxT, S>
where T: Send, CtxT: Send, S: Send,

§

impl<T, CtxT, S> Sync for GraphQLResponse<T, CtxT, S>
where T: Sync, CtxT: Sync, S: Sync,

§

impl<T, CtxT, S> Unpin for GraphQLResponse<T, CtxT, S>
where T: Unpin, CtxT: Unpin, S: Unpin,

§

impl<T, CtxT, S> UnwindSafe for GraphQLResponse<T, CtxT, S>
where T: UnwindSafe, CtxT: UnwindSafe, S: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ConfigExt for T

Source§

fn modify<M>(self, modifier: M) -> Modify<M, Self>

Creates a Config with the specified ModifyHandler
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

Source§

fn try_into(self) -> Result<U, <T as TryInto<U>>::Error>