pub fn new() -> EventHandlerBag<RequestCtx> {
        EventHandlerBag {
            before_engine_build_handlers: vec![],
            before_request_handlers: vec![],
            after_request_handlers: vec![],
            before_create_handlers: HashMap::new(),
            after_node_create_handlers: HashMap::new(),
            after_rel_create_handlers: HashMap::new(),
            before_read_handlers: HashMap::new(),
            after_node_read_handlers: HashMap::new(),
            after_rel_read_handlers: HashMap::new(),
            before_update_handlers: HashMap::new(),
            after_node_update_handlers: HashMap::new(),
            after_rel_update_handlers: HashMap::new(),
            before_delete_handlers: HashMap::new(),
            after_node_delete_handlers: HashMap::new(),
            after_rel_delete_handlers: HashMap::new(),
        }
    }
/// Creates a new collection of event handlers
///
/// # Examples
///
/// ```rust
/// # use warpgrapher::engine::events::EventHandlerBag;
///
/// let handlers = EventHandlerBag::<()>::new();
/// ```
Creates a new collection of event handlers
Creates a new collection of event handlers
pub fn new() -> EventHandlerBag<RequestCtx> {
        EventHandlerBag {
            before_engine_build_handlers: vec![],
            before_request_handlers: vec![],
            after_request_handlers: vec![],
            before_create_handlers: HashMap::new(),
            after_node_create_handlers: HashMap::new(),
            after_rel_create_handlers: HashMap::new(),
            before_read_handlers: HashMap::new(),
            after_node_read_handlers: HashMap::new(),
            after_rel_read_handlers: HashMap::new(),
            before_update_handlers: HashMap::new(),
            after_node_update_handlers: HashMap::new(),
            after_rel_update_handlers: HashMap::new(),
            before_delete_handlers: HashMap::new(),
            after_node_delete_handlers: HashMap::new(),
            after_rel_delete_handlers: HashMap::new(),
        }
    }
pub fn new ( ) -> EventHandlerBag < RequestCtx > { EventHandlerBag { before_engine_build_handlers : vec ! [ ] , before_request_handlers : vec ! [ ] , after_request_handlers : vec ! [ ] , before_create_handlers : HashMap :: new ( ) , after_node_create_handlers : HashMap :: new ( ) , after_rel_create_handlers : HashMap :: new ( ) , before_read_handlers : HashMap :: new ( ) , after_node_read_handlers : HashMap :: new ( ) , after_rel_read_handlers : HashMap :: new ( ) , before_update_handlers : HashMap :: new ( ) , after_node_update_handlers : HashMap :: new ( ) , after_rel_update_handlers : HashMap :: new ( ) , before_delete_handlers : HashMap :: new ( ) , after_node_delete_handlers : HashMap :: new ( ) , after_rel_delete_handlers : HashMap :: new ( ) , } }
Creates a new collection of event handlers
Creates a new collection of event handlers
examples
None
use warpgrapher::engine::events::eventhandlerbag;
let handlers = EventHandlerBag::<()>::new();
```
let handlers = EventHandlerBag :: < () > :: new () ; ` ` `