pub struct PDFProvider;Expand description
Provider for extracting text from PDF files
Implementations§
Source§impl PDFProvider
impl PDFProvider
Trait Implementations§
Source§impl Default for PDFProvider
impl Default for PDFProvider
Source§impl SourceProvider for PDFProvider
impl SourceProvider for PDFProvider
Source§fn provider_type(&self) -> &'static str
fn provider_type(&self) -> &'static str
Provider type identifier (e.g., “file”, “github”, “url”)
Source§fn list_items<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 ProviderConfig,
) -> Pin<Box<dyn Future<Output = Result<Vec<SourceItem>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_items<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 ProviderConfig,
) -> Pin<Box<dyn Future<Output = Result<Vec<SourceItem>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
List all items from source (for scanning/indexing)
Source§fn fetch_item<'life0, 'life1, 'async_trait>(
&'life0 self,
uri: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<SourceItem>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn fetch_item<'life0, 'life1, 'async_trait>(
&'life0 self,
uri: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<SourceItem>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Fetch single item by URI
Auto Trait Implementations§
impl Freeze for PDFProvider
impl RefUnwindSafe for PDFProvider
impl Send for PDFProvider
impl Sync for PDFProvider
impl Unpin for PDFProvider
impl UnwindSafe for PDFProvider
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