pub struct PluginHookSpec {
pub event: String,
pub command: String,
}Expand description
One [[hooks]] entry from a plugin.toml manifest — parsed and
trust-gated, but not yet wired to firing (see the module doc comment’s
“Honest, deliberate gaps” section).
Fields§
§event: StringThe lifecycle event name (e.g. "post_tool",
"session_start" — crates/cli/src/hooks.rs::HookEvent::as_str’s
string form).
command: StringThe command to run — same trust class as a tool’s command
(config-borne, from an already trust-gated manifest).
Trait Implementations§
Source§impl Clone for PluginHookSpec
impl Clone for PluginHookSpec
Source§fn clone(&self) -> PluginHookSpec
fn clone(&self) -> PluginHookSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PluginHookSpec
impl Debug for PluginHookSpec
impl Eq for PluginHookSpec
Source§impl PartialEq for PluginHookSpec
impl PartialEq for PluginHookSpec
impl StructuralPartialEq for PluginHookSpec
Auto Trait Implementations§
impl Freeze for PluginHookSpec
impl RefUnwindSafe for PluginHookSpec
impl Send for PluginHookSpec
impl Sync for PluginHookSpec
impl Unpin for PluginHookSpec
impl UnsafeUnpin for PluginHookSpec
impl UnwindSafe for PluginHookSpec
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.