pub struct RenderedHookPayload {
pub hook_event_name: Option<&'static str>,
pub body: Value,
}Expand description
A rendered harness hook-protocol payload, ready to be emitted on the harness’s hook stdout.
Fields§
§hook_event_name: Option<&'static str>The harness’s wire token for the event (e.g. Claude’s
SessionStart). May be None for events the adapter does not
surface a hook payload for under its own protocol.
body: ValueThe JSON payload body the harness expects on stdout. For events
the adapter does not carry, this is {} (the harness’s
quiet-default contract).
Implementations§
Source§impl RenderedHookPayload
impl RenderedHookPayload
Sourcepub fn body_string(&self) -> String
pub fn body_string(&self) -> String
Compact JSON suitable for emission on stdout.
Trait Implementations§
Source§impl Clone for RenderedHookPayload
impl Clone for RenderedHookPayload
Source§fn clone(&self) -> RenderedHookPayload
fn clone(&self) -> RenderedHookPayload
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 RenderedHookPayload
impl Debug for RenderedHookPayload
Source§impl PartialEq for RenderedHookPayload
impl PartialEq for RenderedHookPayload
Source§fn eq(&self, other: &RenderedHookPayload) -> bool
fn eq(&self, other: &RenderedHookPayload) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RenderedHookPayload
impl StructuralPartialEq for RenderedHookPayload
Auto Trait Implementations§
impl Freeze for RenderedHookPayload
impl RefUnwindSafe for RenderedHookPayload
impl Send for RenderedHookPayload
impl Sync for RenderedHookPayload
impl Unpin for RenderedHookPayload
impl UnsafeUnpin for RenderedHookPayload
impl UnwindSafe for RenderedHookPayload
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.