pub struct HookConfig<T> {
pub enabled: bool,
pub config: T,
}Expand description
Common envelope for one compiled-in hook.
Fields§
§enabled: boolWhether this hook should produce side effects.
config: THook-owned behavior configuration.
Trait Implementations§
Source§impl<T: Clone> Clone for HookConfig<T>
impl<T: Clone> Clone for HookConfig<T>
Source§impl<T: Debug> Debug for HookConfig<T>
impl<T: Debug> Debug for HookConfig<T>
Source§impl<T> Default for HookConfig<T>where
T: Default,
impl<T> Default for HookConfig<T>where
T: Default,
Source§impl<'de, T> Deserialize<'de> for HookConfig<T>where
T: Deserialize<'de> + Default,
impl<'de, T> Deserialize<'de> for HookConfig<T>where
T: Deserialize<'de> + Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<T> Freeze for HookConfig<T>where
T: Freeze,
impl<T> RefUnwindSafe for HookConfig<T>where
T: RefUnwindSafe,
impl<T> Send for HookConfig<T>where
T: Send,
impl<T> Sync for HookConfig<T>where
T: Sync,
impl<T> Unpin for HookConfig<T>where
T: Unpin,
impl<T> UnsafeUnpin for HookConfig<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for HookConfig<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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