pub struct HooksFile {
pub hooks: IndexMap<HookEventName, Vec<HookMatcherGroup>>,
}Expand description
Parsed hooks.json file.
Fields§
§hooks: IndexMap<HookEventName, Vec<HookMatcherGroup>>Implementations§
Source§impl HooksFile
impl HooksFile
Sourcepub fn from_json_bytes(bytes: &[u8]) -> Result<(Self, Vec<HooksLoadWarning>)>
pub fn from_json_bytes(bytes: &[u8]) -> Result<(Self, Vec<HooksLoadWarning>)>
Parse and validate a hook file from JSON bytes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HooksFile
impl RefUnwindSafe for HooksFile
impl Send for HooksFile
impl Sync for HooksFile
impl Unpin for HooksFile
impl UnsafeUnpin for HooksFile
impl UnwindSafe for HooksFile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more