Trait juniper::GraphQLUnion [−][src]
pub trait GraphQLUnion<S: ScalarValue>: GraphQLType<S> { fn mark() { ... } }
Expand description
Maker trait for GraphQL unions.
This trait extends the GraphQLType
and is only used to mark an union. 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 unions. Other types (scalars, enums, objects, input objects and
interfaces) are not allowed.
Provided methods
fn mark()
[src]
Expand description
An arbitrary function without meaning.
May contain compile timed check logic which ensures that types are used correctly according to the GraphQL specification.
Implementations on Foreign Types
impl<'a, S, T: ?Sized> GraphQLUnion<S> for &T where
T: GraphQLUnion<S>,
S: ScalarValue,
[src]
impl<'a, S, T: ?Sized> GraphQLUnion<S> for &T where
T: GraphQLUnion<S>,
S: ScalarValue,
[src]impl<S, T: ?Sized> GraphQLUnion<S> for Box<T> where
T: GraphQLUnion<S>,
S: ScalarValue,
[src]
impl<S, T: ?Sized> GraphQLUnion<S> for Box<T> where
T: GraphQLUnion<S>,
S: ScalarValue,
[src]impl<S, T: ?Sized> GraphQLUnion<S> for Arc<T> where
T: GraphQLUnion<S>,
S: ScalarValue,
[src]
impl<S, T: ?Sized> GraphQLUnion<S> for Arc<T> where
T: GraphQLUnion<S>,
S: ScalarValue,
[src]