pub struct DocxControlPlane<C: Connection> { /* private fields */ }Expand description
Facade for ingestion and query operations for a single solution store.
Implementations§
Source§impl<C: Connection> DocxControlPlane<C>
impl<C: Connection> DocxControlPlane<C>
Sourcepub async fn ingest_csharp_xml(
&self,
request: CsharpIngestRequest,
) -> Result<CsharpIngestReport, ControlError>
pub async fn ingest_csharp_xml( &self, request: CsharpIngestRequest, ) -> Result<CsharpIngestReport, ControlError>
Ingests C# XML documentation into the store.
§Errors
Returns ControlError if validation fails, parsing fails, or store writes fail.
Sourcepub async fn ingest_rustdoc_json(
&self,
request: RustdocIngestRequest,
) -> Result<RustdocIngestReport, ControlError>
pub async fn ingest_rustdoc_json( &self, request: RustdocIngestRequest, ) -> Result<RustdocIngestReport, ControlError>
Ingests rustdoc JSON documentation into the store.
§Errors
Returns ControlError if validation fails, parsing fails, or store writes fail.
Source§impl<C: Connection> DocxControlPlane<C>
impl<C: Connection> DocxControlPlane<C>
Sourcepub async fn upsert_project(
&self,
request: ProjectUpsertRequest,
) -> Result<Project, ControlError>
pub async fn upsert_project( &self, request: ProjectUpsertRequest, ) -> Result<Project, ControlError>
Upserts a project and merges aliases.
§Errors
Returns ControlError if the input is invalid or the store operation fails.
Sourcepub async fn get_project(
&self,
project_id: &str,
) -> Result<Option<Project>, ControlError>
pub async fn get_project( &self, project_id: &str, ) -> Result<Option<Project>, ControlError>
Sourcepub async fn get_ingest(
&self,
ingest_id: &str,
) -> Result<Option<Ingest>, ControlError>
pub async fn get_ingest( &self, ingest_id: &str, ) -> Result<Option<Ingest>, ControlError>
Sourcepub async fn get_doc_source(
&self,
doc_source_id: &str,
) -> Result<Option<DocSource>, ControlError>
pub async fn get_doc_source( &self, doc_source_id: &str, ) -> Result<Option<DocSource>, ControlError>
Sourcepub async fn list_projects(
&self,
limit: usize,
) -> Result<Vec<Project>, ControlError>
pub async fn list_projects( &self, limit: usize, ) -> Result<Vec<Project>, ControlError>
Sourcepub async fn list_ingests(
&self,
project_id: &str,
limit: usize,
) -> Result<Vec<Ingest>, ControlError>
pub async fn list_ingests( &self, project_id: &str, limit: usize, ) -> Result<Vec<Ingest>, ControlError>
Sourcepub async fn list_doc_sources(
&self,
project_id: &str,
ingest_id: Option<&str>,
limit: usize,
) -> Result<Vec<DocSource>, ControlError>
pub async fn list_doc_sources( &self, project_id: &str, ingest_id: Option<&str>, limit: usize, ) -> Result<Vec<DocSource>, ControlError>
Lists document sources for a project, optionally filtered by ingest id.
§Errors
Returns ControlError if the store query fails.
Sourcepub async fn search_projects(
&self,
pattern: &str,
limit: usize,
) -> Result<Vec<Project>, ControlError>
pub async fn search_projects( &self, pattern: &str, limit: usize, ) -> Result<Vec<Project>, ControlError>
Searches projects by a name or alias pattern.
§Errors
Returns ControlError if the store query fails.
Source§impl<C: Connection> DocxControlPlane<C>
impl<C: Connection> DocxControlPlane<C>
Sourcepub async fn get_symbol(
&self,
project_id: &str,
symbol_key: &str,
) -> Result<Option<Symbol>, ControlError>
pub async fn get_symbol( &self, project_id: &str, symbol_key: &str, ) -> Result<Option<Symbol>, ControlError>
Sourcepub async fn list_doc_blocks(
&self,
project_id: &str,
symbol_key: &str,
ingest_id: Option<&str>,
) -> Result<Vec<DocBlock>, ControlError>
pub async fn list_doc_blocks( &self, project_id: &str, symbol_key: &str, ingest_id: Option<&str>, ) -> Result<Vec<DocBlock>, ControlError>
Lists document blocks for a symbol, optionally scoping by ingest id.
§Errors
Returns ControlError if the store query fails.
Sourcepub async fn search_symbols(
&self,
project_id: &str,
name: &str,
limit: usize,
) -> Result<Vec<Symbol>, ControlError>
pub async fn search_symbols( &self, project_id: &str, name: &str, limit: usize, ) -> Result<Vec<Symbol>, ControlError>
Sourcepub async fn search_doc_blocks(
&self,
project_id: &str,
text: &str,
limit: usize,
) -> Result<Vec<DocBlock>, ControlError>
pub async fn search_doc_blocks( &self, project_id: &str, text: &str, limit: usize, ) -> Result<Vec<DocBlock>, ControlError>
Sourcepub async fn list_symbol_kinds(
&self,
project_id: &str,
) -> Result<Vec<String>, ControlError>
pub async fn list_symbol_kinds( &self, project_id: &str, ) -> Result<Vec<String>, ControlError>
Sourcepub async fn list_members_by_scope(
&self,
project_id: &str,
scope: &str,
limit: usize,
) -> Result<Vec<Symbol>, ControlError>
pub async fn list_members_by_scope( &self, project_id: &str, scope: &str, limit: usize, ) -> Result<Vec<Symbol>, ControlError>
Lists members by scope prefix or glob pattern.
§Errors
Returns ControlError if the store query fails.
Sourcepub async fn get_symbol_adjacency(
&self,
project_id: &str,
symbol_key: &str,
limit: usize,
) -> Result<SymbolAdjacency, ControlError>
pub async fn get_symbol_adjacency( &self, project_id: &str, symbol_key: &str, limit: usize, ) -> Result<SymbolAdjacency, ControlError>
Fetches adjacency information for a symbol, including relations and related symbols.
§Errors
Returns ControlError if the store query fails.
Source§impl<C: Connection> DocxControlPlane<C>
impl<C: Connection> DocxControlPlane<C>
Sourcepub const fn from_arc(db: Arc<Surreal<C>>) -> Self
pub const fn from_arc(db: Arc<Surreal<C>>) -> Self
Creates a control plane from a shared SurrealDB connection.
Sourcepub const fn with_store(store: SurrealDocStore<C>) -> Self
pub const fn with_store(store: SurrealDocStore<C>) -> Self
Creates a control plane from an existing store implementation.
Sourcepub const fn store(&self) -> &SurrealDocStore<C>
pub const fn store(&self) -> &SurrealDocStore<C>
Returns the underlying store implementation.
Trait Implementations§
Source§impl<C: Connection> Clone for DocxControlPlane<C>
impl<C: Connection> Clone for DocxControlPlane<C>
Auto Trait Implementations§
impl<C> Freeze for DocxControlPlane<C>
impl<C> !RefUnwindSafe for DocxControlPlane<C>
impl<C> Send for DocxControlPlane<C>
impl<C> Sync for DocxControlPlane<C>
impl<C> Unpin for DocxControlPlane<C>
impl<C> !UnwindSafe for DocxControlPlane<C>
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
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>
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>
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