pub struct MockVectorExtractor;Expand description
A simple mock extractor for testing.
Composes text from frontmatter title + body content, separated by |.
Trait Implementations§
Source§impl Clone for MockVectorExtractor
impl Clone for MockVectorExtractor
Source§fn clone(&self) -> MockVectorExtractor
fn clone(&self) -> MockVectorExtractor
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 moreSource§impl Debug for MockVectorExtractor
impl Debug for MockVectorExtractor
Source§impl Default for MockVectorExtractor
impl Default for MockVectorExtractor
Source§fn default() -> MockVectorExtractor
fn default() -> MockVectorExtractor
Returns the “default value” for a type. Read more
Source§impl VectorExtractor for MockVectorExtractor
impl VectorExtractor for MockVectorExtractor
Source§fn extract_document(
&self,
_base_path: &Path,
file_path: &Path,
frontmatter: &Value,
content: &str,
) -> Result<VectorDocument>
fn extract_document( &self, _base_path: &Path, file_path: &Path, frontmatter: &Value, content: &str, ) -> Result<VectorDocument>
Extract a vector document from a content file. Read more
Source§fn content_glob(&self) -> &str
fn content_glob(&self) -> &str
Returns the content glob pattern for this domain. Read more
Auto Trait Implementations§
impl Freeze for MockVectorExtractor
impl RefUnwindSafe for MockVectorExtractor
impl Send for MockVectorExtractor
impl Sync for MockVectorExtractor
impl Unpin for MockVectorExtractor
impl UnsafeUnpin for MockVectorExtractor
impl UnwindSafe for MockVectorExtractor
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