pub struct YouTubeFetcher;Expand description
YouTube video fetcher
Matches youtube.com/watch?v={id} and youtu.be/{id}, returning
video metadata via oEmbed and transcript when available.
Implementations§
Trait Implementations§
Source§impl Default for YouTubeFetcher
impl Default for YouTubeFetcher
Source§impl Fetcher for YouTubeFetcher
impl Fetcher for YouTubeFetcher
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 YouTubeFetcher
impl RefUnwindSafe for YouTubeFetcher
impl Send for YouTubeFetcher
impl Sync for YouTubeFetcher
impl Unpin for YouTubeFetcher
impl UnsafeUnpin for YouTubeFetcher
impl UnwindSafe for YouTubeFetcher
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