#[non_exhaustive]pub struct HookCallbackRequest {
pub callback_id: String,
pub input: HookEventPayload,
pub tool_use_id: Option<String>,
pub issued_at: Option<u64>,
}Expand description
Source: binary hook_callback schema (callback_id, input, tool_use_id, issued_at)
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.callback_id: StringCallback id from HookMatcherConfig::hook_callback_ids.
input: HookEventPayloadHook input.
tool_use_id: Option<String>Tool-use id, for tool events.
issued_at: Option<u64>Epoch ms on the CLI’s clock when the request was issued.
Trait Implementations§
Source§impl Clone for HookCallbackRequest
impl Clone for HookCallbackRequest
Source§impl Debug for HookCallbackRequest
impl Debug for HookCallbackRequest
Source§impl<'de> Deserialize<'de> for HookCallbackRequest
impl<'de> Deserialize<'de> for HookCallbackRequest
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 HookCallbackRequest
impl Freeze for HookCallbackRequest
impl Move for HookCallbackRequest
impl RefUnwindSafe for HookCallbackRequest
impl Send for HookCallbackRequest
impl Sync for HookCallbackRequest
impl Unpin for HookCallbackRequest
impl UnsafeUnpin for HookCallbackRequest
impl UnwindSafe for HookCallbackRequest
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