bluejay-core 0.3.1

Base GraphQL abstractions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::definition::{ArgumentsDefinition, HasDirectives, OutputType};

pub trait FieldDefinition: HasDirectives {
    type ArgumentsDefinition: ArgumentsDefinition;
    type OutputType: OutputType;

    fn description(&self) -> Option<&str>;
    fn name(&self) -> &str;
    fn arguments_definition(&self) -> Option<&Self::ArgumentsDefinition>;
    fn r#type(&self) -> &Self::OutputType;
    fn is_builtin(&self) -> bool;
}