pub struct BeforeCompactResult {
pub cancel: bool,
pub summary: Option<String>,
pub details: Option<Value>,
}Expand description
Result returned from before_compact (matching pi’s SessionBeforeCompactResult).
Returning { cancel: true } prevents compaction.
Fields§
§cancel: boolIf true, compaction is cancelled entirely.
summary: Option<String>If provided, uses this summary instead of calling the provider.
details: Option<Value>Optional details stored with the compaction entry.
Auto Trait Implementations§
impl Freeze for BeforeCompactResult
impl RefUnwindSafe for BeforeCompactResult
impl Send for BeforeCompactResult
impl Sync for BeforeCompactResult
impl Unpin for BeforeCompactResult
impl UnsafeUnpin for BeforeCompactResult
impl UnwindSafe for BeforeCompactResult
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