Struct GraphQl

Source
pub struct GraphQl<Q, M, Sub, S>
where Q: GraphQLType<S, Context = GraphQlContext>, M: GraphQLType<S, Context = GraphQlContext>, Sub: GraphQLType<S, Context = GraphQlContext>, S: ScalarValue,
{ /* private fields */ }
Available on crate feature graphql only.
Expand description

This only supports POST requests

Implementations§

Source§

impl<Q, M, Sub, S> GraphQl<Q, M, Sub, S>
where Q: GraphQLType<S, Context = GraphQlContext>, M: GraphQLType<S, Context = GraphQlContext>, Sub: GraphQLType<S, Context = GraphQlContext>, S: ScalarValue,

Source

pub fn new( uri: &'static str, root_node: RootNode<'static, Q, M, Sub, S>, ) -> Self

Trait Implementations§

Source§

impl<Q, M, Sub, S> Route for GraphQl<Q, M, Sub, S>
where Q: GraphQLTypeAsync<S, Context = GraphQlContext> + Send, Q::TypeInfo: Send + Sync, M: GraphQLTypeAsync<S, Context = GraphQlContext> + Send, M::TypeInfo: Send + Sync, Sub: GraphQLSubscriptionType<S, Context = GraphQlContext> + Send, Sub::TypeInfo: Send + Sync, S: ScalarValue + Send + Sync,

Source§

fn validate_requirements(&self, _params: &ParamsNames<'_>, _data: &Resources)

Source§

fn path(&self) -> RoutePath

Source§

fn call<'a>( &'a self, req: &'a mut Request, _params: &'a PathParams, data: &'a Resources, ) -> PinnedFuture<'a, Result<Response>>

Auto Trait Implementations§

§

impl<Q, M, Sub, S> Freeze for GraphQl<Q, M, Sub, S>
where Q: Freeze, <Q as GraphQLValue<S>>::TypeInfo: Freeze, M: Freeze, <M as GraphQLValue<S>>::TypeInfo: Freeze, Sub: Freeze, <Sub as GraphQLValue<S>>::TypeInfo: Freeze,

§

impl<Q, M, Sub, S> RefUnwindSafe for GraphQl<Q, M, Sub, S>

§

impl<Q, M, Sub, S> Send for GraphQl<Q, M, Sub, S>
where Q: Send, <Q as GraphQLValue<S>>::TypeInfo: Send, M: Send, <M as GraphQLValue<S>>::TypeInfo: Send, Sub: Send, <Sub as GraphQLValue<S>>::TypeInfo: Send, S: Send,

§

impl<Q, M, Sub, S> Sync for GraphQl<Q, M, Sub, S>
where Q: Sync, <Q as GraphQLValue<S>>::TypeInfo: Sync, M: Sync, <M as GraphQLValue<S>>::TypeInfo: Sync, Sub: Sync, <Sub as GraphQLValue<S>>::TypeInfo: Sync, S: Sync,

§

impl<Q, M, Sub, S> Unpin for GraphQl<Q, M, Sub, S>
where Q: Unpin, <Q as GraphQLValue<S>>::TypeInfo: Unpin, M: Unpin, <M as GraphQLValue<S>>::TypeInfo: Unpin, Sub: Unpin, <Sub as GraphQLValue<S>>::TypeInfo: Unpin, S: Unpin,

§

impl<Q, M, Sub, S> UnwindSafe for GraphQl<Q, M, Sub, S>

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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<R> IntoRoute for R
where R: Route,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,