pub struct GitHubIssueFetcher;Expand description
GitHub issue/PR fetcher
Matches https://github.com/{owner}/{repo}/issues/{number} and
https://github.com/{owner}/{repo}/pull/{number}, returning
structured metadata and comment threads.
Implementations§
Trait Implementations§
Source§impl Default for GitHubIssueFetcher
impl Default for GitHubIssueFetcher
Source§impl Fetcher for GitHubIssueFetcher
impl Fetcher for GitHubIssueFetcher
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 GitHubIssueFetcher
impl RefUnwindSafe for GitHubIssueFetcher
impl Send for GitHubIssueFetcher
impl Sync for GitHubIssueFetcher
impl Unpin for GitHubIssueFetcher
impl UnsafeUnpin for GitHubIssueFetcher
impl UnwindSafe for GitHubIssueFetcher
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