pub struct URLProvider { /* private fields */ }Expand description
Provider for fetching content from URLs
Implementations§
Source§impl URLProvider
impl URLProvider
Sourcepub fn with_client(client: Client) -> Self
pub fn with_client(client: Client) -> Self
Create a URLProvider with custom client
Trait Implementations§
Source§impl Default for URLProvider
impl Default for URLProvider
Source§impl SourceProvider for URLProvider
impl SourceProvider for URLProvider
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 URLProvider
impl !RefUnwindSafe for URLProvider
impl Send for URLProvider
impl Sync for URLProvider
impl Unpin for URLProvider
impl !UnwindSafe for URLProvider
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