Skip to main content

SessionResult

Struct SessionResult 

Source
pub struct SessionResult {
Show 33 fields pub session_id: String, pub project: String, pub turn_details: Vec<TurnDetail>, pub agent_summary: AgentSummary, pub total_tokens: AggregatedTokens, pub total_cost: f64, pub stop_reason_counts: HashMap<String, usize>, pub duration_minutes: f64, pub max_context: u64, pub compaction_count: usize, pub cache_write_5m_pct: f64, pub cache_write_1h_pct: f64, pub model: String, pub title: Option<String>, pub tags: Vec<String>, pub mode: Option<String>, pub pr_links: Vec<PrLinkInfo>, pub user_prompt_count: usize, pub autonomy_ratio: f64, pub api_error_count: usize, pub tool_error_count: usize, pub truncated_count: usize, pub speculation_accepts: usize, pub speculation_time_saved_ms: f64, pub service_tiers: HashMap<String, usize>, pub speeds: HashMap<String, usize>, pub inference_geos: HashMap<String, usize>, pub git_branches: HashMap<String, usize>, pub collapse_count: usize, pub collapse_summaries: Vec<String>, pub collapse_avg_risk: f64, pub collapse_max_risk: f64, pub attribution: Option<AttributionData>,
}

Fields§

§session_id: String§project: String§turn_details: Vec<TurnDetail>§agent_summary: AgentSummary§total_tokens: AggregatedTokens§total_cost: f64§stop_reason_counts: HashMap<String, usize>§duration_minutes: f64§max_context: u64§compaction_count: usize§cache_write_5m_pct: f64§cache_write_1h_pct: f64§model: String§title: Option<String>§tags: Vec<String>§mode: Option<String>§pr_links: Vec<PrLinkInfo>§user_prompt_count: usize§autonomy_ratio: f64§api_error_count: usize§tool_error_count: usize§truncated_count: usize§speculation_accepts: usize§speculation_time_saved_ms: f64§service_tiers: HashMap<String, usize>§speeds: HashMap<String, usize>§inference_geos: HashMap<String, usize>§git_branches: HashMap<String, usize>§collapse_count: usize§collapse_summaries: Vec<String>§collapse_avg_risk: f64§collapse_max_risk: f64§attribution: Option<AttributionData>

Trait Implementations§

Source§

impl Debug for SessionResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for SessionResult

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.