[go: up one dir, main page]

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§

The schema marker type of this argument.

Required Associated Constants§

The name of this argument

Implementors§