Trait news_flash::feed_api::portal::Portal
source · pub trait Portal: Sync + Send {
fn get_headlines(&self, ids: &[ArticleID]) -> PortalResult<Vec<Headline>>;
fn get_articles(&self, ids: &[ArticleID]) -> PortalResult<Vec<Article>>;
fn get_article_exists(&self, id: &ArticleID) -> PortalResult<bool>;
fn get_article_ids_unread_feed(
&self,
feed_id: &FeedID
) -> PortalResult<Vec<ArticleID>>;
fn get_article_ids_unread_category(
&self,
category_id: &CategoryID
) -> PortalResult<Vec<ArticleID>>;
fn get_article_ids_unread_all(&self) -> PortalResult<Vec<ArticleID>>;
fn get_article_ids_marked_all(&self) -> PortalResult<Vec<ArticleID>>;
fn get_feeds(&self) -> PortalResult<Vec<Feed>>;
fn get_categories(&self) -> PortalResult<Vec<Category>>;
fn get_feed_mappings(&self) -> PortalResult<Vec<FeedMapping>>;
fn get_category_mappings(&self) -> PortalResult<Vec<CategoryMapping>>;
fn get_tags(&self) -> PortalResult<Vec<Tag>>;
}