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§
fn description(&self) -> Option<&str>
fn name(&self) -> &str
fn type(&self) -> &Self::InputType
fn default_value(&self) -> Option<&Self::Value>
Provided Methods§
fn is_required(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".