[go: up one dir, main page]

cynic

Trait InputObject

Source
pub trait InputObject: Serialize {
    type SchemaType;
}
Expand description

A GraphQL input object.

This should be derived on a struct.

Required Associated Types§

Source

type SchemaType

The input object in the schema that this type represents.

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<T> InputObject for Option<T>
where T: InputObject,

Source§

impl<T> InputObject for &T
where T: InputObject + ?Sized,

Source§

impl<T> InputObject for [T]
where T: InputObject,

Source§

impl<T> InputObject for Box<T>
where T: InputObject,

Source§

impl<T> InputObject for Vec<T>
where T: InputObject,

Source§

impl<T, const SIZE: usize> InputObject for [T; SIZE]
where T: InputObject, Self: Serialize,

Implementors§