Trait HasDirectiveData

Source
pub trait HasDirectiveData<'a> {
    // Required method
    fn directive_data(&'a self) -> &'a DirectiveData;

    // Provided methods
    fn name(&'a self) -> &'a str { ... }
    fn defaults(&'a self) -> &'a Settings { ... }
}
Expand description

A trait for all directives, it is shared between crate::action::ActionParser and Directive

Required Methods§

Source

fn directive_data(&'a self) -> &'a DirectiveData

Returns the directive data for this object

Provided Methods§

Source

fn name(&'a self) -> &'a str

Returns the name of the directive.

Source

fn defaults(&'a self) -> &'a Settings

Returns the default settings as configured.

Implementors§