[][src]Trait juniper::GraphQLInterface

pub trait GraphQLInterface<S: ScalarValue>: GraphQLType<S> {
    fn mark() { ... }
}

Maker trait for GraphQL interfaces.

This trait extends the GraphQLType and is only used to mark an interface. During compile this addition information is required to prevent unwanted structure compiling. If an object requires this trait instead of the GraphQLType, then it explicitly requires GraphQL interfaces. Other types (scalars, enums, objects, input objects and unions) are not allowed.

Provided methods

fn mark()[src]

An arbitrary function without meaning.

May contain compile timed check logic which ensures that types are used correctly according to the GraphQL specification.

Loading content...

Implementations on Foreign Types

impl<'a, S, T: ?Sized> GraphQLInterface<S> for &T where
    T: GraphQLInterface<S>,
    S: ScalarValue
[src]

impl<S, T: ?Sized> GraphQLInterface<S> for Box<T> where
    T: GraphQLInterface<S>,
    S: ScalarValue
[src]

impl<S, T: ?Sized> GraphQLInterface<S> for Arc<T> where
    T: GraphQLInterface<S>,
    S: ScalarValue
[src]

Loading content...

Implementors

Loading content...