[][src]Struct juniper::EmptySubscription

pub struct EmptySubscription<T: ?Sized = ()>(_);

Utillity type to define read-only schemas

If you instantiate RootNode with this as the subscription, no subscriptions will be generated for the schema.

Implementations

impl<T: ?Sized> EmptySubscription<T>[src]

pub fn new() -> Self[src]

Construct a new empty subscription

Trait Implementations

impl<T> Default for EmptySubscription<T>[src]

impl<T, S> GraphQLSubscriptionValue<S> for EmptySubscription<T> where
    Self::TypeInfo: Sync,
    Self::Context: Sync,
    S: ScalarValue + Send + Sync + 'static, 
[src]

impl<S, T> GraphQLType<S> for EmptySubscription<T> where
    S: ScalarValue
[src]

impl<S, T> GraphQLValue<S> for EmptySubscription<T> where
    S: ScalarValue
[src]

type Context = T

Context type for this GraphQLValue. Read more

type TypeInfo = ()

Type that may carry additional schema information for this GraphQLValue. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,