[go: up one dir, main page]

cynic::schema

Trait 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 Constants§

Source

const NAME: &'static str

The name of this argument

Required Associated Types§

Source

type ArgumentType

The schema marker type of this argument.

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.

Implementors§