pub struct ArticleService { /* private fields */ }Expand description
Fetches financial news articles.
Implementations§
Source§impl ArticleService
impl ArticleService
Sourcepub async fn fetch_articles(
&self,
params: &GetArticlesParams,
) -> Result<ArticleResponse, Error>
pub async fn fetch_articles( &self, params: &GetArticlesParams, ) -> Result<ArticleResponse, Error>
Searches articles matching params and returns one result page.
Sourcepub async fn fetch_article_by_link(
&self,
params: &GetArticleByLinkParams,
) -> Result<Article, Error>
pub async fn fetch_article_by_link( &self, params: &GetArticleByLinkParams, ) -> Result<Article, Error>
Fetches a single article by its URL.
Trait Implementations§
Source§impl Clone for ArticleService
impl Clone for ArticleService
Source§fn clone(&self) -> ArticleService
fn clone(&self) -> ArticleService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ArticleService
impl !UnwindSafe for ArticleService
impl Freeze for ArticleService
impl Send for ArticleService
impl Sync for ArticleService
impl Unpin for ArticleService
impl UnsafeUnpin for ArticleService
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