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§fn clone(&self) -> CompactActionPayload
fn clone(&self) -> CompactActionPayload
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 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 moreSource§impl Serialize for CompactActionPayload
impl Serialize for CompactActionPayload
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 Forget for CompactActionPayload
impl Freeze for CompactActionPayload
impl Move for CompactActionPayload
impl RefUnwindSafe for CompactActionPayload
impl Send for CompactActionPayloadwhere
RawVecInner: Send,
impl Sync for CompactActionPayloadwhere
RawVecInner: Sync,
impl Unpin for CompactActionPayload
impl UnsafeUnpin for CompactActionPayload
impl UnwindSafe for CompactActionPayloadwhere
RawVecInner: UnwindSafe,
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