pub struct PreCompactInput {
pub base: BaseHookInput,
pub trigger: String,
pub custom_instructions: Option<String>,
}Expand description
Input payload for PreCompact.
Fields§
§base: BaseHookInputShared hook context.
trigger: StringTrigger that prompted the compaction - "manual" or "auto".
custom_instructions: Option<String>Caller-supplied compaction guidance. None when the CLI did not
pass custom instructions.
Trait Implementations§
Source§impl Clone for PreCompactInput
impl Clone for PreCompactInput
Source§impl Debug for PreCompactInput
impl Debug for PreCompactInput
Source§impl<'de> Deserialize<'de> for PreCompactInput
impl<'de> Deserialize<'de> for PreCompactInput
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 Freeze for PreCompactInput
impl RefUnwindSafe for PreCompactInput
impl Send for PreCompactInput
impl Sync for PreCompactInput
impl Unpin for PreCompactInput
impl UnsafeUnpin for PreCompactInput
impl UnwindSafe for PreCompactInput
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