pub struct CSVProvider;Expand description
Provider for indexing CSV files
Implementations§
Source§impl CSVProvider
impl CSVProvider
Trait Implementations§
Source§impl Default for CSVProvider
impl Default for CSVProvider
Source§impl SourceProvider for CSVProvider
impl SourceProvider for CSVProvider
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 CSVProvider
impl RefUnwindSafe for CSVProvider
impl Send for CSVProvider
impl Sync for CSVProvider
impl Unpin for CSVProvider
impl UnwindSafe for CSVProvider
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