pub struct HooksConfig {
pub order: Vec<String>,
pub settings: BTreeMap<String, Value>,
}Expand description
[hooks]: which in-process loop hooks run, and their settings.
order is the composition order, and the only list: a hook that is not named in it does
not run, and a settings table for a hook that is not named in it is refused at load rather
than quietly never used. Absent, it is ["redact-secrets"]; order = [] runs nothing.
Fields§
§order: Vec<String>§settings: BTreeMap<String, Value>The [hooks.<name>] tables. Read as loose TOML so the parser drops nothing: every key
here is checked by crate::hooks::validate, which names the one that is wrong.
Trait Implementations§
Source§impl Clone for HooksConfig
impl Clone for HooksConfig
Source§impl Debug for HooksConfig
impl Debug for HooksConfig
Source§impl Default for HooksConfig
impl Default for HooksConfig
Source§impl<'de> Deserialize<'de> for HooksConfigwhere
HooksConfig: Default,
impl<'de> Deserialize<'de> for HooksConfigwhere
HooksConfig: 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
Source§impl PartialEq for HooksConfig
impl PartialEq for HooksConfig
Source§impl Serialize for HooksConfig
impl Serialize for HooksConfig
impl StructuralPartialEq for HooksConfig
Auto Trait Implementations§
impl Forget for HooksConfig
impl Freeze for HooksConfig
impl Move for HooksConfig
impl RefUnwindSafe for HooksConfig
impl Send for HooksConfig
impl Sync for HooksConfig
impl Unpin for HooksConfig
impl UnsafeUnpin for HooksConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for HooksConfig
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