pub trait DirectiveProcessor {
// Required methods
fn process(&self, directive: &Directive) -> Result<String>;
fn get_name(&self) -> &str;
fn get_option_spec(&self) -> HashMap<String, DirectiveOptionType>;
}Expand description
Directive processor trait
Required Methods§
fn process(&self, directive: &Directive) -> Result<String>
fn get_name(&self) -> &str
fn get_option_spec(&self) -> HashMap<String, DirectiveOptionType>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".