Hook: Must provide name, gets reference to configuration
This commit is contained in:
parent
9961f64ce6
commit
6dae03d731
1 changed files with 2 additions and 1 deletions
|
@ -14,6 +14,7 @@ pub mod result;
|
|||
use hook::accessor::HookDataAccessorProvider;
|
||||
|
||||
pub trait Hook : HookDataAccessorProvider + Debug + Send + Sync {
|
||||
fn set_config(&mut self, cfg: Value);
|
||||
fn name(&self) -> &'static str;
|
||||
fn set_config(&mut self, cfg: &Value);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue