pub struct ChainAction {
pub hook_ids: Vec<String>,
pub pass_output: bool,
}Expand description
Chain action configuration
Executes multiple hooks in sequence. Optionally passes the output of one hook as context to the next hook in the chain.
§Examples
ⓘ
ChainAction {
hook_ids: vec![
"analyze-code".to_string(),
"generate-suggestions".to_string(),
"apply-suggestions".to_string(),
],
pass_output: true,
}Fields§
§hook_ids: Vec<String>IDs of hooks to execute in sequence
pass_output: boolWhether to pass output between hooks
Trait Implementations§
Source§impl Clone for ChainAction
impl Clone for ChainAction
Source§fn clone(&self) -> ChainAction
fn clone(&self) -> ChainAction
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 ChainAction
impl Debug for ChainAction
Source§impl<'de> Deserialize<'de> for ChainAction
impl<'de> Deserialize<'de> for ChainAction
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 ChainAction
impl RefUnwindSafe for ChainAction
impl Send for ChainAction
impl Sync for ChainAction
impl Unpin for ChainAction
impl UnwindSafe for ChainAction
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