pub struct ParsedAmpSession {
pub session_id: String,
pub title: Option<String>,
pub created_at: Option<DateTime<Utc>>,
pub working_directory: String,
pub git_branch: Option<String>,
pub model: Option<String>,
pub messages: Vec<ParsedAmpMessage>,
pub source_path: String,
}Expand description
Intermediate representation of a parsed Amp session.
Fields§
§session_id: String§title: Option<String>§created_at: Option<DateTime<Utc>>§working_directory: String§git_branch: Option<String>§model: Option<String>§messages: Vec<ParsedAmpMessage>§source_path: StringImplementations§
Source§impl ParsedAmpSession
impl ParsedAmpSession
Sourcepub fn to_storage_models(&self) -> (Session, Vec<Message>)
pub fn to_storage_models(&self) -> (Session, Vec<Message>)
Converts this parsed session to storage-ready models.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParsedAmpSession
impl RefUnwindSafe for ParsedAmpSession
impl Send for ParsedAmpSession
impl Sync for ParsedAmpSession
impl Unpin for ParsedAmpSession
impl UnwindSafe for ParsedAmpSession
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