pub struct HookMutationConfig {
pub enabled: bool,
pub format: Option<String>,
pub extra: HashMap<String, Value>,
}Expand description
Mutation settings for a hook.
Fields§
§enabled: boolOpt-in flag for parsing stdout as mutation JSON.
format: Option<String>Optional explicit payload format guardrail. Only json is valid in v1.
extra: HashMap<String, Value>Unknown keys captured for v1 mutation guardrails.
Trait Implementations§
Source§impl Clone for HookMutationConfig
impl Clone for HookMutationConfig
Source§fn clone(&self) -> HookMutationConfig
fn clone(&self) -> HookMutationConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HookMutationConfig
impl Debug for HookMutationConfig
Source§impl Default for HookMutationConfig
impl Default for HookMutationConfig
Source§fn default() -> HookMutationConfig
fn default() -> HookMutationConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HookMutationConfig
impl<'de> Deserialize<'de> for HookMutationConfig
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 Freeze for HookMutationConfig
impl RefUnwindSafe for HookMutationConfig
impl Send for HookMutationConfig
impl Sync for HookMutationConfig
impl Unpin for HookMutationConfig
impl UnsafeUnpin for HookMutationConfig
impl UnwindSafe for HookMutationConfig
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