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§fn clone(&self) -> PreCompactInput
fn clone(&self) -> PreCompactInput
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 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<PreCompactInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PreCompactInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PreCompactInput
impl Serialize for PreCompactInput
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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