pub struct Registry<'a> {
pub ingest: IngestConfig<'a>,
}Expand description
Dispatches extraction to a language-aware extractor by file extension,
falling back to a plain file node when no language is registered. After the
language extractor runs, crate::markers appends any intent-debt markers
(intent-debt markers) found in the blob. Carries the runtime
IngestConfig applied to content extraction — which includes the
PathPolicy deciding whether this path is extracted at all.
Fields§
§ingest: IngestConfig<'a>Which paths to read, and which blob content to extract for embedding.
Implementations§
Trait Implementations§
impl<'a> Copy for Registry<'a>
Source§impl Extractor for Registry<'_>
impl Extractor for Registry<'_>
Source§fn reads(&self, path: &str) -> bool
fn reads(&self, path: &str) -> bool
Whether
sync should read this path’s bytes at all. Read moreSource§fn mines(&self, path: &str) -> bool
fn mines(&self, path: &str) -> bool
Whether anything may be derived from what this path holds, beyond a
file’s identity. Read more
Source§fn paths(&self) -> &PathPolicy
fn paths(&self) -> &PathPolicy
The policy itself, for the one reader that needs to ask about a path it
has not been handed. Read more
Source§fn env_tag(&self) -> u64
fn env_tag(&self) -> u64
Runtime inputs — beyond
(path, bytes) — that change extraction output
and so must be folded into the sync cache key: the installed OCR-model
identity and any IngestConfig toggles that gate extraction. The
default is the media-model tag alone; Registry additionally folds in
its ingestion config so toggling content off re-extracts affected blobs
instead of serving stale, content-bearing facts.Auto Trait Implementations§
impl<'a> Freeze for Registry<'a>
impl<'a> RefUnwindSafe for Registry<'a>
impl<'a> Send for Registry<'a>
impl<'a> Sync for Registry<'a>
impl<'a> Unpin for Registry<'a>
impl<'a> UnsafeUnpin for Registry<'a>
impl<'a> UnwindSafe for Registry<'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