pub struct TurnDraft {Show 18 fields
pub session_id: String,
pub source_request_id: String,
pub export_session_id: String,
pub export_parent_session_id: Option<String>,
pub turn_index: usize,
pub model: String,
pub input_text: String,
pub output_length: usize,
pub observed_input_length: Option<usize>,
pub cache_read_input_tokens: Option<usize>,
pub cache_creation_input_tokens: Option<usize>,
pub request_start_ms: i64,
pub assistant_start_ms: i64,
pub assistant_end_ms: i64,
pub delay_ms: Option<i64>,
pub tools: Vec<ToolDraft>,
pub sidecar: Value,
pub compaction: Option<CompactionMetadata>,
}Fields§
§session_id: String§source_request_id: String§export_session_id: String§export_parent_session_id: Option<String>§turn_index: usize§model: String§input_text: String§output_length: usize§observed_input_length: Option<usize>§cache_read_input_tokens: Option<usize>§cache_creation_input_tokens: Option<usize>§request_start_ms: i64§assistant_start_ms: i64§assistant_end_ms: i64§delay_ms: Option<i64>§tools: Vec<ToolDraft>§sidecar: Value§compaction: Option<CompactionMetadata>Trait Implementations§
Auto Trait Implementations§
impl Freeze for TurnDraft
impl RefUnwindSafe for TurnDraft
impl Send for TurnDraft
impl Sync for TurnDraft
impl Unpin for TurnDraft
impl UnsafeUnpin for TurnDraft
impl UnwindSafe for TurnDraft
Blanket Implementations§
impl<T> BlockMetadata for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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