pub trait GraphQLObject<S: ScalarValue>: GraphQLType<S> {
    // Provided method
    fn mark() { ... }
}
Expand description

Maker trait for GraphQL objects.

This trait extends the GraphQLType and is only used to mark an object. 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 objects. Other types (scalars, enums, interfaces, input objects and unions) are not allowed.

Provided Methods§

source

fn mark()

An arbitrary function without meaning.

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<S, T> GraphQLObject<S> for &T
where T: GraphQLObject<S> + ?Sized, S: ScalarValue,

source§

impl<S, T> GraphQLObject<S> for Box<T>
where T: GraphQLObject<S> + ?Sized, S: ScalarValue,

source§

impl<S, T> GraphQLObject<S> for Arc<T>
where T: GraphQLObject<S> + ?Sized, S: ScalarValue,

Implementors§

source§

impl<'a, S> GraphQLObject<S> for Argument<'a, S>
where S: ScalarValue + ScalarValue + 'a,

source§

impl<'a, S> GraphQLObject<S> for Field<'a, S>
where S: ScalarValue + ScalarValue + 'a,

source§

impl<'a, S> GraphQLObject<S> for SchemaType<'a, S>
where S: ScalarValue + ScalarValue + 'a,

source§

impl<__S> GraphQLObject<__S> for EnumValue
where __S: ScalarValue,

source§

impl<__S> GraphQLObject<__S> for Droid
where __S: ScalarValue,

source§

impl<__S> GraphQLObject<__S> for Human
where __S: ScalarValue,

source§

impl<__S> GraphQLObject<__S> for Query
where __S: ScalarValue,