pub struct SessionEndPayload {
pub duration_ms: i64,
pub total_turns: u32,
pub total_api_calls: u32,
pub total_tool_calls: u32,
pub total_permission_denials: u32,
pub total_input_tokens: u64,
pub total_output_tokens: u64,
pub total_cache_creation: u64,
pub total_cache_read: u64,
pub stop_reason: String,
}Expand description
Session 结束事件的载荷。
Fields§
§duration_ms: i64§total_turns: u32§total_api_calls: u32§total_tool_calls: u32§total_permission_denials: u32§total_input_tokens: u64§total_output_tokens: u64§total_cache_creation: u64§total_cache_read: u64§stop_reason: StringTrait Implementations§
Source§impl Clone for SessionEndPayload
impl Clone for SessionEndPayload
Source§impl Debug for SessionEndPayload
impl Debug for SessionEndPayload
Source§impl JsonSchema for SessionEndPayload
impl JsonSchema for SessionEndPayload
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 SessionEndPayload
impl Freeze for SessionEndPayload
impl Move for SessionEndPayload
impl RefUnwindSafe for SessionEndPayload
impl Send for SessionEndPayloadwhere
RawVecInner: Send,
impl Sync for SessionEndPayloadwhere
RawVecInner: Sync,
impl Unpin for SessionEndPayload
impl UnsafeUnpin for SessionEndPayload
impl UnwindSafe for SessionEndPayloadwhere
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