pub struct DistillSignal {
pub recorded_at: u64,
pub tool_name: Option<String>,
pub cwd: String,
pub payload: Option<String>,
}Expand description
One signal envelope written by the post-tool-use hook.
Mirrors hook_runtime::post_tool_use::DistillSignalEnvelope so the
two layers serialize/deserialize each other 1:1. We keep a separate
type here so the queue API doesn’t pull hook_runtime into the
dependency graph (cycles).
Fields§
§recorded_at: u64§tool_name: Option<String>§cwd: String§payload: Option<String>Trait Implementations§
Source§impl Clone for DistillSignal
impl Clone for DistillSignal
Source§fn clone(&self) -> DistillSignal
fn clone(&self) -> DistillSignal
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 DistillSignal
impl Debug for DistillSignal
Source§impl<'de> Deserialize<'de> for DistillSignal
impl<'de> Deserialize<'de> for DistillSignal
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
Source§impl PartialEq for DistillSignal
impl PartialEq for DistillSignal
Source§fn eq(&self, other: &DistillSignal) -> bool
fn eq(&self, other: &DistillSignal) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DistillSignal
impl Serialize for DistillSignal
impl Eq for DistillSignal
impl StructuralPartialEq for DistillSignal
Auto Trait Implementations§
impl Freeze for DistillSignal
impl RefUnwindSafe for DistillSignal
impl Send for DistillSignal
impl Sync for DistillSignal
impl Unpin for DistillSignal
impl UnsafeUnpin for DistillSignal
impl UnwindSafe for DistillSignal
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.