Skip to main content

DocumentResolver

Struct DocumentResolver 

Source
pub struct DocumentResolver { /* private fields */ }
Expand description

Application composition over an explicit local document snapshot.

Implementations§

Source§

impl DocumentResolver

Source

pub fn from_system() -> Self

Capture source discovery for related application operations.

Source

pub fn resolve( &self, request: &QueryRequest, policy: LoadPolicy, ) -> Result<ResolvedContent, QueryError>

Validate the entire request before resolving its source.

§Errors

Returns loading or query-view validation errors.

Source

pub fn execute( &self, request: &QueryRequest, policy: LoadPolicy, ) -> Result<QueryViewResult, QueryExecutionError>

Load and materialize the view encoded by a complete request.

§Errors

Returns loading, validation, projection or search failure.

Source

pub fn discover(&self, query: &CatalogQuery) -> Result<DocumentCatalog, String>

Discover candidates from the same local snapshot.

§Errors

Returns source configuration or catalog filter failures.

Source

pub fn discover_prepared( &self, query: &PreparedCatalogQuery<'_>, ) -> Result<DocumentCatalog, String>

Discover with a query prepared before this environment was captured.

§Errors

Returns source configuration or catalog acquisition failures.

Source§

impl DocumentResolver

Source

pub fn execute_scope_query( &self, request: &ScopeQueryRequest, ) -> Result<ScopeQueryResponse, ScopeQueryError>

Resolve a scope and apply its closed multi-document projection.

§Errors

Returns request validation, resolution, or search errors. Ordinary per-document explanation misses do not fail the aggregate query.

Source§

impl DocumentResolver

Source

pub fn resolve_scope( &self, scope: &DocumentScope, ) -> Result<LoadedDocumentScope, ScopeQueryError>

Resolve typed links against this application’s existing loader snapshot.

§Errors

Returns invalid traversal input or failure to load any initial document.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.