pub enum HookCommand {
Command {
command: String,
shell: Option<String>,
if_condition: Option<String>,
timeout: Option<u64>,
},
Prompt {
prompt: String,
if_condition: Option<String>,
timeout: Option<u64>,
},
Agent {
prompt: String,
model: Option<String>,
if_condition: Option<String>,
timeout: Option<u64>,
},
Http {
url: String,
if_condition: Option<String>,
timeout: Option<u64>,
},
}Expand description
Hook command types
Variants§
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 moreAuto 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