pub enum HookCommand {
Command(CommandHookParams),
Prompt(PromptHookParams),
Agent(AgentHookParams),
Http(HttpHookParams),
}Expand description
Hook definition (supports all TS hook types: command, prompt, agent, http). Translated from HookCommand discriminated union in schemas/hooks.ts.
Variants§
Implementations§
Source§impl HookCommand
Get the if condition from a HookCommand (if any).
impl HookCommand
Get the if condition from a HookCommand (if any).
Trait Implementations§
Source§impl Clone for HookCommand
impl Clone for HookCommand
Source§fn clone(&self) -> HookCommand
fn clone(&self) -> HookCommand
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 HookCommand
impl Debug for HookCommand
Source§impl<'de> Deserialize<'de> for HookCommand
impl<'de> Deserialize<'de> for HookCommand
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 From<HookCommand> for HookDefinition
impl From<HookCommand> for HookDefinition
Source§fn from(cmd: HookCommand) -> Self
fn from(cmd: HookCommand) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HookCommand
impl RefUnwindSafe for HookCommand
impl Send for HookCommand
impl Sync for HookCommand
impl Unpin for HookCommand
impl UnsafeUnpin for HookCommand
impl UnwindSafe for HookCommand
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