Trait cynic::schema::HasArgument

source ·
pub trait HasArgument<ArgumentMarker> {
    type ArgumentType;

    const NAME: &'static str;
}
Expand description

Indicates that a field has an argument

This should be implemented on the field marker type for each argument that field has. ArgumentMarker should be the marker type for the argument.

Required Associated Types§

source

type ArgumentType

The schema marker type of this argument.

Required Associated Constants§

source

const NAME: &'static str

The name of this argument

Object Safety§

This trait is not object safe.

Implementors§