[][src]Struct news_flash::NewsFlash

pub struct NewsFlash { /* fields omitted */ }

Implementations

impl NewsFlash[src]

pub fn list_backends() -> HashMap<PluginID, PluginInfo>[src]

pub fn new(
    data_dir: &PathBuf,
    config_dir: &PathBuf,
    id: &PluginID
) -> Result<Self, NewsFlashError>
[src]

pub fn try_load(
    data_dir: &PathBuf,
    config_dir: &PathBuf
) -> Result<Self, NewsFlashError>
[src]

pub fn id(&self) -> Option<PluginID>[src]

pub fn user_name(&self) -> Option<String>[src]

pub fn features(&self) -> Result<PluginCapabilities, NewsFlashError>[src]

pub fn get_login_data(&self) -> Option<LoginData>[src]

pub fn is_sync_ongoing(&self) -> bool[src]

pub fn is_database_empty(&self) -> Result<bool, NewsFlashError>[src]

pub fn parse_error(error: &dyn Fail) -> Option<String>[src]

pub async fn get_icon_info<'_, '_, '_>(
    &'_ self,
    feed: &'_ Feed,
    client: &'_ Client
) -> Result<FavIcon, NewsFlashError>
[src]

pub async fn login<'_, '_>(
    &'_ self,
    data: LoginData,
    client: &'_ Client
) -> Result<(), NewsFlashError>
[src]

pub async fn logout<'_, '_>(
    &'_ self,
    client: &'_ Client
) -> Result<(), NewsFlashError>
[src]

pub async fn initial_sync<'_, '_>(
    &'_ self,
    client: &'_ Client
) -> Result<i64, NewsFlashError>
[src]

pub async fn sync<'_, '_>(
    &'_ self,
    client: &'_ Client
) -> Result<i64, NewsFlashError>
[src]

pub async fn set_article_read<'_, '_, '_>(
    &'_ self,
    articles: &'_ [ArticleID],
    read: Read,
    client: &'_ Client
) -> Result<(), NewsFlashError>
[src]

pub async fn set_article_marked<'_, '_, '_>(
    &'_ self,
    articles: &'_ [ArticleID],
    marked: Marked,
    client: &'_ Client
) -> Result<(), NewsFlashError>
[src]

pub async fn set_feed_read<'_, '_, '_>(
    &'_ self,
    feeds: &'_ [FeedID],
    client: &'_ Client
) -> Result<(), NewsFlashError>
[src]

pub async fn set_category_read<'_, '_, '_>(
    &'_ self,
    categories: &'_ [CategoryID],
    client: &'_ Client
) -> Result<(), NewsFlashError>
[src]

pub async fn set_tag_read<'_, '_, '_>(
    &'_ self,
    tags: &'_ [TagID],
    client: &'_ Client
) -> Result<(), NewsFlashError>
[src]

pub async fn set_all_read<'_, '_>(
    &'_ self,
    client: &'_ Client
) -> Result<(), NewsFlashError>
[src]

pub async fn add_feed<'_, '_, '_>(
    &'_ self,
    url: &'_ Url,
    title: Option<String>,
    category_id: Option<CategoryID>,
    client: &'_ Client
) -> Result<Feed, NewsFlashError>
[src]

pub async fn remove_feed<'_, '_, '_>(
    &'_ self,
    feed: &'_ Feed,
    client: &'_ Client
) -> Result<(), NewsFlashError>
[src]

pub async fn move_feed<'_, '_, '_, '_, '_>(
    &'_ self,
    feed: &'_ FeedID,
    from: &'_ CategoryID,
    to: &'_ CategoryID,
    client: &'_ Client
) -> Result<(), NewsFlashError>
[src]

pub async fn rename_feed<'_, '_, '_, '_>(
    &'_ self,
    feed: &'_ Feed,
    new_title: &'_ str,
    client: &'_ Client
) -> Result<Feed, NewsFlashError>
[src]

pub async fn add_category<'_, '_, '_, '_>(
    &'_ self,
    title: &'_ str,
    parent: Option<&'_ CategoryID>,
    sort_index: Option<i32>,
    client: &'_ Client
) -> Result<Category, NewsFlashError>
[src]

pub async fn remove_category<'_, '_, '_>(
    &'_ self,
    category: &'_ Category,
    remove_children: bool,
    client: &'_ Client
) -> Result<(), NewsFlashError>
[src]

pub async fn rename_category<'_, '_, '_, '_>(
    &'_ self,
    category: &'_ Category,
    new_title: &'_ str,
    client: &'_ Client
) -> Result<Category, NewsFlashError>
[src]

pub async fn move_category<'_, '_, '_, '_>(
    &'_ self,
    category_id: &'_ CategoryID,
    parent: &'_ CategoryID,
    client: &'_ Client
) -> Result<(), NewsFlashError>
[src]

pub async fn add_tag<'_, '_, '_>(
    &'_ self,
    title: &'_ str,
    color: Option<String>,
    sort_index: Option<i32>,
    client: &'_ Client
) -> Result<Tag, NewsFlashError>
[src]

pub async fn remove_tag<'_, '_, '_>(
    &'_ self,
    tag: &'_ Tag,
    client: &'_ Client
) -> Result<(), NewsFlashError>
[src]

pub async fn rename_tag<'_, '_, '_, '_>(
    &'_ self,
    tag: &'_ Tag,
    new_title: &'_ str,
    client: &'_ Client
) -> Result<Tag, NewsFlashError>
[src]

pub async fn tag_article<'_, '_, '_, '_>(
    &'_ self,
    article: &'_ Article,
    tag: &'_ Tag,
    client: &'_ Client
) -> Result<(), NewsFlashError>
[src]

pub async fn untag_article<'_, '_, '_, '_>(
    &'_ self,
    article: &'_ Article,
    tag: &'_ Tag,
    client: &'_ Client
) -> Result<(), NewsFlashError>
[src]

pub async fn import_opml<'_, '_, '_>(
    &'_ self,
    opml: &'_ str,
    parse_all_feeds: bool,
    client: &'_ Client
) -> Result<(), NewsFlashError>
[src]

pub fn export_opml(&self) -> Result<String, NewsFlashError>[src]

pub fn get_categories(&self) -> Result<Vec<Category>, NewsFlashError>[src]

pub fn unread_count_category(
    &self,
    category: &CategoryID
) -> Result<i64, NewsFlashError>
[src]

pub fn marked_count_category(
    &self,
    category: &CategoryID
) -> Result<i64, NewsFlashError>
[src]

pub fn get_feeds(&self) -> Result<(Vec<Feed>, Vec<FeedMapping>), NewsFlashError>[src]

pub fn unread_count_feed(&self, feed: &FeedID) -> Result<i64, NewsFlashError>[src]

pub fn marked_count_feed(&self, feed: &FeedID) -> Result<i64, NewsFlashError>[src]

pub fn unread_count_feed_map(
    &self
) -> Result<HashMap<FeedID, i64>, NewsFlashError>
[src]

pub fn marked_count_feed_map(
    &self
) -> Result<HashMap<FeedID, i64>, NewsFlashError>
[src]

pub fn get_tags(&self) -> Result<Vec<Tag>, NewsFlashError>[src]

pub fn get_tags_of_article(
    &self,
    article_id: &ArticleID
) -> Result<Vec<Tag>, NewsFlashError>
[src]

pub fn unread_count_tag(&self, tag: &TagID) -> Result<i64, NewsFlashError>[src]

pub fn marked_count_tag(&self, tag: &TagID) -> Result<i64, NewsFlashError>[src]

pub fn unread_count_all(&self) -> Result<i64, NewsFlashError>[src]

pub fn marked_count_all(&self) -> Result<i64, NewsFlashError>[src]

pub fn get_articles(
    &self,
    filter: ArticleFilter<'_>
) -> Result<Vec<Article>, NewsFlashError>
[src]

pub fn get_article(&self, id: &ArticleID) -> Result<Article, NewsFlashError>[src]

pub fn get_fat_articles(
    &self,
    filter: ArticleFilter<'_>
) -> Result<Vec<FatArticle>, NewsFlashError>
[src]

pub fn get_fat_article(
    &self,
    id: &ArticleID
) -> Result<FatArticle, NewsFlashError>
[src]

pub async fn article_download_images<'_, '_, '_>(
    &'_ self,
    id: &'_ ArticleID,
    client: &'_ Client
) -> Result<FatArticle, NewsFlashError>
[src]

pub async fn article_scrap_content<'_, '_, '_>(
    &'_ self,
    id: &'_ ArticleID,
    client: &'_ Client
) -> Result<FatArticle, NewsFlashError>
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoSql for T[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,