juniper::marker

Trait IsInputType

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

Marker trait for types which can be used as input types.

The GraphQL specification differentiates between input and output types. Each type which can be used as an input type should implement this trait. The specification defines enum, scalar, and input object input types.

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.

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> IsInputType<S> for str
where S: ScalarValue,

Source§

impl<S, T> IsInputType<S> for Option<T>
where T: IsInputType<S>, S: ScalarValue,

Source§

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

Source§

impl<S, T> IsInputType<S> for [T]
where T: IsInputType<S>, S: ScalarValue,

Source§

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

Source§

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

Source§

impl<S, T> IsInputType<S> for Vec<T>
where T: IsInputType<S>, S: ScalarValue,

Source§

impl<S, T, const N: usize> IsInputType<S> for [T; N]
where T: IsInputType<S>, S: ScalarValue,

Source§

impl<Tz, __S> IsInputType<__S> for DateTime<Tz>

Source§

impl<__S> IsInputType<__S> for bool
where __S: ScalarValue,

Source§

impl<__S> IsInputType<__S> for f64
where __S: ScalarValue,

Source§

impl<__S> IsInputType<__S> for i32
where __S: ScalarValue,

Source§

impl<__S> IsInputType<__S> for NaiveDate
where __S: ScalarValue,

Source§

impl<__S> IsInputType<__S> for NaiveDateTime
where __S: ScalarValue,

Source§

impl<__S> IsInputType<__S> for NaiveTime
where __S: ScalarValue,

Source§

impl<__S> IsInputType<__S> for String
where __S: ScalarValue,

Implementors§

Source§

impl<S, T> IsInputType<S> for Nullable<T>
where T: IsInputType<S>, S: ScalarValue,

Source§

impl<__S> IsInputType<__S> for TypeKind
where __S: ScalarValue,

Source§

impl<__S> IsInputType<__S> for ID
where __S: ScalarValue,