pub struct CompactActionPayload {
pub kind: CompactKind,
pub strategy: String,
pub before_tokens: u64,
pub after_tokens: u64,
pub before_message_count: usize,
pub after_message_count: usize,
pub success: bool,
pub latency_ms: u64,
}Expand description
压缩行为事件的载荷。
Fields§
§kind: CompactKind§strategy: String§before_tokens: u64§after_tokens: u64§before_message_count: usize§after_message_count: usize§success: bool§latency_ms: u64Trait Implementations§
Source§impl Clone for CompactActionPayload
impl Clone for CompactActionPayload
Source§impl Debug for CompactActionPayload
impl Debug for CompactActionPayload
Source§impl JsonSchema for CompactActionPayload
impl JsonSchema for CompactActionPayload
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Forget for CompactActionPayload
impl Freeze for CompactActionPayload
impl Move for CompactActionPayload
impl RefUnwindSafe for CompactActionPayload
impl Send for CompactActionPayload
impl Sync for CompactActionPayload
impl Unpin for CompactActionPayload
impl UnsafeUnpin for CompactActionPayload
impl UnwindSafe for CompactActionPayload
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