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§
Sourcefn mark()
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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl<S, T> GraphQLObject<S> for &T
impl<S, T> GraphQLObject<S> for &T
Source§impl<S, T> GraphQLObject<S> for Box<T>
impl<S, T> GraphQLObject<S> for Box<T>
Source§impl<S, T> GraphQLObject<S> for Arc<T>
impl<S, T> GraphQLObject<S> for Arc<T>
Implementors§
impl<S> GraphQLObject<S> for Argument<S>where
S: ScalarValue + ScalarValue,
impl<S> GraphQLObject<S> for Field<S>where
S: ScalarValue + ScalarValue,
impl<S> GraphQLObject<S> for SchemaType<S>where
S: ScalarValue + ScalarValue,
impl<__S> GraphQLObject<__S> for EnumValuewhere
__S: ScalarValue,
impl<__S> GraphQLObject<__S> for Droidwhere
__S: ScalarValue,
Available on crate feature
expose-test-schema only.impl<__S> GraphQLObject<__S> for Humanwhere
__S: ScalarValue,
Available on crate feature
expose-test-schema only.impl<__S> GraphQLObject<__S> for Querywhere
__S: ScalarValue,
Available on crate feature
expose-test-schema only.