InputValueDefinition

Trait InputValueDefinition 

Source
pub trait InputValueDefinition: HasDirectives {
    type InputType: InputType;
    type Value: ConstValue;

    // Required methods
    fn description(&self) -> Option<&str>;
    fn name(&self) -> &str;
    fn type(&self) -> &Self::InputType;
    fn default_value(&self) -> Option<&Self::Value>;

    // Provided method
    fn is_required(&self) -> bool { ... }
}

Required Associated Types§

Required Methods§

Source

fn description(&self) -> Option<&str>

Source

fn name(&self) -> &str

Source

fn type(&self) -> &Self::InputType

Source

fn default_value(&self) -> Option<&Self::Value>

Provided Methods§

Source

fn is_required(&self) -> bool

Implementors§