pub struct StudioStorage { /* private fields */ }Implementations§
Source§impl StudioStorage
impl StudioStorage
pub async fn open(config: &AppConfig) -> Result<Self>
pub async fn schema_status(&self) -> Result<StorageSchemaStatus>
pub async fn list_source_roots(&self) -> Result<Vec<SourceRootSummary>>
pub async fn upsert_source_root( &self, summary: &SourceRootSummary, ) -> Result<SourceRootSummary>
pub async fn record_provider_test( &self, provider: &str, ok: bool, detail: &str, ) -> Result<()>
pub async fn list_provider_statuses(&self) -> Result<Vec<ProviderStatusRow>>
pub async fn load_provider_selection(&self) -> Result<ProviderSelectionResponse>
pub async fn save_provider_selection( &self, selection: &ProviderSelectionResponse, ) -> Result<ProviderSelectionResponse>
pub async fn persist_session(&self, session_id: &str) -> Result<()>
pub async fn session_exists(&self, session_id: &str) -> Result<bool>
pub async fn upsert_workspace_task_run( &self, session_id: &str, summary: &WorkspaceTaskRunSummary, ) -> Result<()>
pub async fn list_workspace_task_runs( &self, session_id: &str, limit: usize, error_code: Option<&str>, ) -> Result<Vec<WorkspaceTaskRunSummary>>
pub async fn get_workspace_task_run( &self, session_id: &str, run_id: Uuid, ) -> Result<Option<WorkspaceTaskRunSummary>>
pub async fn start_workspace_file_change_audit( &self, session_id: &str, request: &WorkspaceFileChangePreviewRequest, size_bytes_before: Option<u64>, ) -> Result<WorkspaceFileChangeAuditEntry>
pub async fn finish_workspace_file_change_audit( &self, session_id: &str, audit_id: Uuid, status: WorkspaceFileChangeAuditStatus, error: Option<&str>, error_code: Option<&str>, size_bytes_after: Option<u64>, ) -> Result<WorkspaceFileChangeAuditEntry>
pub async fn list_workspace_file_change_audits( &self, session_id: &str, limit: usize, error_code: Option<&str>, ) -> Result<Vec<WorkspaceFileChangeAuditEntry>>
pub async fn create_conversation( &self, session_id: &str, title: Option<&str>, ) -> Result<ConversationSummary>
pub async fn ensure_conversation( &self, session_id: &str, conversation_id: &str, title_hint: Option<&str>, ) -> Result<ConversationSummary>
pub async fn list_conversations( &self, session_id: &str, ) -> Result<Vec<ConversationSummary>>
pub async fn find_conversation( &self, session_id: &str, conversation_id: &str, ) -> Result<Option<ConversationSummary>>
pub async fn delete_conversation( &self, session_id: &str, conversation_id: &str, ) -> Result<bool>
pub async fn list_conversation_messages( &self, session_id: &str, conversation_id: &str, ) -> Result<Vec<ConversationMessage>>
pub async fn create_message( &self, message: &NewConversationMessage, ) -> Result<ConversationMessage>
pub async fn update_message_content( &self, message_id: &str, content: &str, status: &str, ) -> Result<ConversationMessage>
pub async fn append_message_delta( &self, message_id: &str, delta: &str, ) -> Result<ConversationMessage>
pub async fn replace_source_files( &self, source_root_id: &str, files: &[ScannedSourceFile], ) -> Result<()>
pub async fn create_ingest_job( &self, source_root_id: Option<&str>, scope_label: &str, ) -> Result<IngestJobSummary>
pub async fn complete_ingest_job( &self, job_id: &str, status: &str, file_count: usize, last_error: Option<&str>, ) -> Result<IngestJobSummary>
pub async fn list_ingest_jobs(&self) -> Result<Vec<IngestJobSummary>>
pub async fn load_ingest_status(&self) -> Result<IngestStatusResponse>
pub async fn list_indexed_source_files( &self, ) -> Result<Vec<IndexedSourceFileRow>>
Trait Implementations§
Source§impl Clone for StudioStorage
impl Clone for StudioStorage
Source§fn clone(&self) -> StudioStorage
fn clone(&self) -> StudioStorage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for StudioStorage
impl !RefUnwindSafe for StudioStorage
impl Send for StudioStorage
impl Sync for StudioStorage
impl Unpin for StudioStorage
impl UnsafeUnpin for StudioStorage
impl !UnwindSafe for StudioStorage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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