pub struct NativeSessionPreview {
pub session_id: String,
pub title: Option<String>,
pub modified_at_unix_ms: Option<u64>,
pub model: Option<String>,
pub message_count: u64,
pub message_count_exact: bool,
pub completed_turn_count: Option<u64>,
pub total_tokens: Option<u64>,
pub truncated: bool,
pub messages: Vec<NativeSessionPreviewMessage>,
}Fields§
§session_id: String§title: Option<String>§modified_at_unix_ms: Option<u64>§model: Option<String>§message_count: u64§message_count_exact: bool§completed_turn_count: Option<u64>§total_tokens: Option<u64>§truncated: bool§messages: Vec<NativeSessionPreviewMessage>Implementations§
Source§impl NativeSessionPreview
impl NativeSessionPreview
pub fn validate(&self) -> Result<(), HistoryValidationError>
Trait Implementations§
Source§impl Clone for NativeSessionPreview
impl Clone for NativeSessionPreview
Source§impl Debug for NativeSessionPreview
impl Debug for NativeSessionPreview
Source§impl<'de> Deserialize<'de> for NativeSessionPreview
impl<'de> Deserialize<'de> for NativeSessionPreview
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NativeSessionPreview
Source§impl From<NativeSessionPreview> for SessionRecordPreview
impl From<NativeSessionPreview> for SessionRecordPreview
Source§fn from(preview: NativeSessionPreview) -> Self
fn from(preview: NativeSessionPreview) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NativeSessionPreview
impl PartialEq for NativeSessionPreview
Source§impl Serialize for NativeSessionPreview
impl Serialize for NativeSessionPreview
impl StructuralPartialEq for NativeSessionPreview
Auto Trait Implementations§
impl Freeze for NativeSessionPreview
impl RefUnwindSafe for NativeSessionPreview
impl Send for NativeSessionPreview
impl Sync for NativeSessionPreview
impl Unpin for NativeSessionPreview
impl UnsafeUnpin for NativeSessionPreview
impl UnwindSafe for NativeSessionPreview
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