pub struct SessionCompactionCompleteData {
pub success: bool,
pub error: Option<String>,
pub pre_compaction_tokens: Option<f64>,
pub post_compaction_tokens: Option<f64>,
pub pre_compaction_messages_length: Option<f64>,
pub post_compaction_messages_length: Option<f64>,
pub compaction_tokens_used: Option<CompactionTokensUsed>,
pub messages_removed: Option<f64>,
pub tokens_removed: Option<f64>,
pub summary_content: Option<String>,
pub checkpoint_number: Option<f64>,
pub checkpoint_path: Option<String>,
}Expand description
Data for session.compaction_complete event.
Fields§
§success: bool§error: Option<String>§pre_compaction_tokens: Option<f64>§post_compaction_tokens: Option<f64>§pre_compaction_messages_length: Option<f64>§post_compaction_messages_length: Option<f64>§compaction_tokens_used: Option<CompactionTokensUsed>§messages_removed: Option<f64>§tokens_removed: Option<f64>§summary_content: Option<String>§checkpoint_number: Option<f64>§checkpoint_path: Option<String>Trait Implementations§
Source§impl Clone for SessionCompactionCompleteData
impl Clone for SessionCompactionCompleteData
Source§fn clone(&self) -> SessionCompactionCompleteData
fn clone(&self) -> SessionCompactionCompleteData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for SessionCompactionCompleteData
impl<'de> Deserialize<'de> for SessionCompactionCompleteData
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 SessionCompactionCompleteData
impl RefUnwindSafe for SessionCompactionCompleteData
impl Send for SessionCompactionCompleteData
impl Sync for SessionCompactionCompleteData
impl Unpin for SessionCompactionCompleteData
impl UnsafeUnpin for SessionCompactionCompleteData
impl UnwindSafe for SessionCompactionCompleteData
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more