pub struct HookStartedMessage {
pub hook_id: String,
pub hook_name: String,
pub hook_event: String,
pub origin: Option<String>,
pub label: Option<String>,
pub plugin_name: Option<String>,
pub uuid: Option<String>,
pub session_id: Option<String>,
}Fields§
§hook_id: String§hook_name: String§hook_event: String§origin: Option<String>Who configured the hook (user_settings, project_settings,
policy_settings, official_plugin, …); treat an unfamiliar value as
unknown. Set only on SessionStart hooks in the Claude desktop app’s
Code tab while the session’s records stay local (CLI 2.1.326+).
label: Option<String>With origin: a short display name — the hook’s statusMessage, or
the file name of its program for a settings hook. One line, at most 80
characters, untrusted (CLI 2.1.326+).
plugin_name: Option<String>With origin: the plugin the hook comes from. One line, at most 80
characters, untrusted (CLI 2.1.326+).
uuid: Option<String>§session_id: Option<String>Trait Implementations§
Source§impl Clone for HookStartedMessage
impl Clone for HookStartedMessage
Source§impl Debug for HookStartedMessage
impl Debug for HookStartedMessage
Source§impl<'de> Deserialize<'de> for HookStartedMessage
impl<'de> Deserialize<'de> for HookStartedMessage
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 Forget for HookStartedMessage
impl Freeze for HookStartedMessage
impl Move for HookStartedMessage
impl RefUnwindSafe for HookStartedMessage
impl Send for HookStartedMessage
impl Sync for HookStartedMessage
impl Unpin for HookStartedMessage
impl UnsafeUnpin for HookStartedMessage
impl UnwindSafe for HookStartedMessage
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