pub struct WorkspacesResource<'a> { /* private fields */ }Implementations§
Source§impl<'a> WorkspacesResource<'a>
impl<'a> WorkspacesResource<'a>
Sourcepub async fn list(&self, tenant_id: &str) -> Result<Vec<WorkspaceInfo>>
pub async fn list(&self, tenant_id: &str) -> Result<Vec<WorkspaceInfo>>
GET /api/v1/tenants/{tenant_id}/workspaces
Sourcepub async fn create(
&self,
tenant_id: &str,
req: &CreateWorkspaceRequest,
) -> Result<WorkspaceInfo>
pub async fn create( &self, tenant_id: &str, req: &CreateWorkspaceRequest, ) -> Result<WorkspaceInfo>
POST /api/v1/tenants/{tenant_id}/workspaces
Sourcepub async fn stats(&self, workspace_id: &str) -> Result<WorkspaceStats>
pub async fn stats(&self, workspace_id: &str) -> Result<WorkspaceStats>
GET /api/v1/workspaces/{id}/stats
Sourcepub async fn rebuild(&self, workspace_id: &str) -> Result<RebuildResponse>
pub async fn rebuild(&self, workspace_id: &str) -> Result<RebuildResponse>
POST /api/v1/workspaces/{id}/rebuild
Sourcepub async fn get(&self, workspace_id: &str) -> Result<WorkspaceInfo>
pub async fn get(&self, workspace_id: &str) -> Result<WorkspaceInfo>
GET /api/v1/workspaces/{id} — Get workspace by ID.
Sourcepub async fn update(
&self,
workspace_id: &str,
body: &Value,
) -> Result<WorkspaceInfo>
pub async fn update( &self, workspace_id: &str, body: &Value, ) -> Result<WorkspaceInfo>
PUT /api/v1/workspaces/{id} — Update workspace.
Sourcepub async fn delete(&self, workspace_id: &str) -> Result<()>
pub async fn delete(&self, workspace_id: &str) -> Result<()>
DELETE /api/v1/workspaces/{id} — Delete workspace.
Sourcepub async fn metrics_history(&self, workspace_id: &str) -> Result<Vec<Value>>
pub async fn metrics_history(&self, workspace_id: &str) -> Result<Vec<Value>>
GET /api/v1/workspaces/{id}/metrics-history
Sourcepub async fn rebuild_embeddings(&self, workspace_id: &str) -> Result<Value>
pub async fn rebuild_embeddings(&self, workspace_id: &str) -> Result<Value>
POST /api/v1/workspaces/{id}/rebuild-embeddings
Sourcepub async fn rebuild_knowledge_graph(&self, workspace_id: &str) -> Result<Value>
pub async fn rebuild_knowledge_graph(&self, workspace_id: &str) -> Result<Value>
POST /api/v1/workspaces/{id}/rebuild-knowledge-graph
Sourcepub async fn reprocess_documents(&self, workspace_id: &str) -> Result<Value>
pub async fn reprocess_documents(&self, workspace_id: &str) -> Result<Value>
POST /api/v1/workspaces/{id}/reprocess-documents
Auto Trait Implementations§
impl<'a> Freeze for WorkspacesResource<'a>
impl<'a> !RefUnwindSafe for WorkspacesResource<'a>
impl<'a> Send for WorkspacesResource<'a>
impl<'a> Sync for WorkspacesResource<'a>
impl<'a> Unpin for WorkspacesResource<'a>
impl<'a> UnsafeUnpin for WorkspacesResource<'a>
impl<'a> !UnwindSafe for WorkspacesResource<'a>
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