pub struct TwitterFetcher;Expand description
Twitter/X tweet fetcher
Matches tweet URLs (https://x.com/{user}/status/{id} and
https://twitter.com/{user}/status/{id}) and returns structured
markdown with tweet content, author info, and engagement metrics.
Implementations§
Trait Implementations§
Source§impl Default for TwitterFetcher
impl Default for TwitterFetcher
Source§impl Fetcher for TwitterFetcher
impl Fetcher for TwitterFetcher
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 TwitterFetcher
impl RefUnwindSafe for TwitterFetcher
impl Send for TwitterFetcher
impl Sync for TwitterFetcher
impl Unpin for TwitterFetcher
impl UnsafeUnpin for TwitterFetcher
impl UnwindSafe for TwitterFetcher
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