pub struct DocsSiteFetcher;Expand description
Documentation site fetcher with llms.txt support
Matches known documentation sites and explicit llms.txt URLs. For matched sites, probes for llms-full.txt/llms.txt at the origin before returning content.
Implementations§
Trait Implementations§
Source§impl Default for DocsSiteFetcher
impl Default for DocsSiteFetcher
Source§impl Fetcher for DocsSiteFetcher
impl Fetcher for DocsSiteFetcher
Source§fn matches(&self, url: &Url) -> bool
fn matches(&self, url: &Url) -> bool
Returns true if this fetcher can handle the given URL Read more
Source§fn fetch<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: &'life1 FetchRequest,
options: &'life2 FetchOptions,
) -> Pin<Box<dyn Future<Output = Result<FetchResponse, FetchError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn fetch<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: &'life1 FetchRequest,
options: &'life2 FetchOptions,
) -> Pin<Box<dyn Future<Output = Result<FetchResponse, FetchError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Fetch content from the URL Read more
Source§fn fetch_to_file<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
request: &'life1 FetchRequest,
options: &'life2 FetchOptions,
saver: &'life3 dyn FileSaver,
) -> Pin<Box<dyn Future<Output = Result<FetchResponse, FetchError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn fetch_to_file<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
request: &'life1 FetchRequest,
options: &'life2 FetchOptions,
saver: &'life3 dyn FileSaver,
) -> Pin<Box<dyn Future<Output = Result<FetchResponse, FetchError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Fetch with file saving support. Read more
Auto Trait Implementations§
impl Freeze for DocsSiteFetcher
impl RefUnwindSafe for DocsSiteFetcher
impl Send for DocsSiteFetcher
impl Sync for DocsSiteFetcher
impl Unpin for DocsSiteFetcher
impl UnsafeUnpin for DocsSiteFetcher
impl UnwindSafe for DocsSiteFetcher
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