castle_types 0.20.2

all Castle types for Castle_Api
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::{Kind, AppliedDirective, InputDefinitions};

/// Definition of a field resolver, used in field types
/// ```notrust
/// type Root {
///     this_is_a_field(arg: String): String
///     also_a_field: String @lowercase
/// }
/// ```
#[derive(Debug, PartialEq, Clone)]
pub struct FieldDefinition {
    pub ident: Box<str>,
    pub input_definitions: InputDefinitions,
    pub return_kind: Kind,
    pub directives: Vec<AppliedDirective>,
}