Struct news_flash::NewsFlash [−][src]
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]
data_dir: &PathBuf,
config_dir: &PathBuf,
id: &PluginID
) -> Result<Self, NewsFlashError>
pub fn try_load(
data_dir: &PathBuf,
config_dir: &PathBuf
) -> Result<Self, NewsFlashError>
[src]
data_dir: &PathBuf,
config_dir: &PathBuf
) -> Result<Self, NewsFlashError>
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 fn set_keep_articles_duration(
&self,
keep_articles: Option<Duration>
) -> Result<(), NewsFlashError>
[src]
&self,
keep_articles: Option<Duration>
) -> Result<(), NewsFlashError>
pub fn get_keep_articles_duration(&self) -> Option<Duration>
[src]
pub fn error_login_related(error: &NewsFlashError) -> bool
[src]
pub async fn get_icon_info(
&self,
feed_id: &FeedID,
client: &Client
) -> Result<FavIcon, NewsFlashError>
[src]
&self,
feed_id: &FeedID,
client: &Client
) -> Result<FavIcon, NewsFlashError>
pub async fn get_article_thumbnail(
&self,
article_id: &ArticleID,
client: &Client
) -> Result<Thumbnail, NewsFlashError>
[src]
&self,
article_id: &ArticleID,
client: &Client
) -> Result<Thumbnail, NewsFlashError>
pub fn database_size(&self) -> Result<DatabaseSize, NewsFlashError>
[src]
pub async fn login(
&self,
data: LoginData,
client: &Client
) -> Result<(), NewsFlashError>
[src]
&self,
data: LoginData,
client: &Client
) -> Result<(), NewsFlashError>
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]
&self,
articles: &[ArticleID],
read: Read,
client: &Client
) -> Result<(), NewsFlashError>
pub async fn set_article_marked(
&self,
articles: &[ArticleID],
marked: Marked,
client: &Client
) -> Result<(), NewsFlashError>
[src]
&self,
articles: &[ArticleID],
marked: Marked,
client: &Client
) -> Result<(), NewsFlashError>
pub async fn set_feed_read(
&self,
feeds: &[FeedID],
client: &Client
) -> Result<(), NewsFlashError>
[src]
&self,
feeds: &[FeedID],
client: &Client
) -> Result<(), NewsFlashError>
pub async fn set_category_read(
&self,
categories: &[CategoryID],
client: &Client
) -> Result<(), NewsFlashError>
[src]
&self,
categories: &[CategoryID],
client: &Client
) -> Result<(), NewsFlashError>
pub async fn set_tag_read(
&self,
tags: &[TagID],
client: &Client
) -> Result<(), NewsFlashError>
[src]
&self,
tags: &[TagID],
client: &Client
) -> Result<(), NewsFlashError>
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]
&self,
url: &Url,
title: Option<String>,
category_id: Option<CategoryID>,
client: &Client
) -> Result<Feed, NewsFlashError>
pub async fn remove_feed(
&self,
feed: &Feed,
client: &Client
) -> Result<(), NewsFlashError>
[src]
&self,
feed: &Feed,
client: &Client
) -> Result<(), NewsFlashError>
pub async fn move_feed(
&self,
feed: &FeedID,
from: &CategoryID,
to: &CategoryID,
client: &Client
) -> Result<(), NewsFlashError>
[src]
&self,
feed: &FeedID,
from: &CategoryID,
to: &CategoryID,
client: &Client
) -> Result<(), NewsFlashError>
pub async fn rename_feed(
&self,
feed: &Feed,
new_title: &str,
client: &Client
) -> Result<Feed, NewsFlashError>
[src]
&self,
feed: &Feed,
new_title: &str,
client: &Client
) -> Result<Feed, NewsFlashError>
pub async fn add_category(
&self,
title: &str,
parent: Option<&CategoryID>,
sort_index: Option<i32>,
client: &Client
) -> Result<Category, NewsFlashError>
[src]
&self,
title: &str,
parent: Option<&CategoryID>,
sort_index: Option<i32>,
client: &Client
) -> Result<Category, NewsFlashError>
pub async fn remove_category(
&self,
category: &Category,
remove_children: bool,
client: &Client
) -> Result<(), NewsFlashError>
[src]
&self,
category: &Category,
remove_children: bool,
client: &Client
) -> Result<(), NewsFlashError>
pub async fn rename_category(
&self,
category: &Category,
new_title: &str,
client: &Client
) -> Result<Category, NewsFlashError>
[src]
&self,
category: &Category,
new_title: &str,
client: &Client
) -> Result<Category, NewsFlashError>
pub async fn move_category(
&self,
category_id: &CategoryID,
parent: &CategoryID,
client: &Client
) -> Result<(), NewsFlashError>
[src]
&self,
category_id: &CategoryID,
parent: &CategoryID,
client: &Client
) -> Result<(), NewsFlashError>
pub async fn add_tag(
&self,
title: &str,
color: Option<String>,
sort_index: Option<i32>,
client: &Client
) -> Result<Tag, NewsFlashError>
[src]
&self,
title: &str,
color: Option<String>,
sort_index: Option<i32>,
client: &Client
) -> Result<Tag, NewsFlashError>
pub async fn remove_tag(
&self,
tag: &Tag,
client: &Client
) -> Result<(), NewsFlashError>
[src]
&self,
tag: &Tag,
client: &Client
) -> Result<(), NewsFlashError>
pub async fn rename_tag(
&self,
tag: &Tag,
new_title: &str,
client: &Client
) -> Result<Tag, NewsFlashError>
[src]
&self,
tag: &Tag,
new_title: &str,
client: &Client
) -> Result<Tag, NewsFlashError>
pub async fn tag_article(
&self,
article: &Article,
tag: &Tag,
client: &Client
) -> Result<(), NewsFlashError>
[src]
&self,
article: &Article,
tag: &Tag,
client: &Client
) -> Result<(), NewsFlashError>
pub async fn untag_article(
&self,
article: &Article,
tag: &Tag,
client: &Client
) -> Result<(), NewsFlashError>
[src]
&self,
article: &Article,
tag: &Tag,
client: &Client
) -> Result<(), NewsFlashError>
pub async fn import_opml(
&self,
opml: &str,
parse_all_feeds: bool,
client: &Client
) -> Result<(), NewsFlashError>
[src]
&self,
opml: &str,
parse_all_feeds: bool,
client: &Client
) -> Result<(), NewsFlashError>
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]
&self,
category: &CategoryID
) -> Result<i64, NewsFlashError>
pub fn marked_count_category(
&self,
category: &CategoryID
) -> Result<i64, NewsFlashError>
[src]
&self,
category: &CategoryID
) -> Result<i64, NewsFlashError>
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]
&self
) -> Result<HashMap<FeedID, i64>, NewsFlashError>
pub fn marked_count_feed_map(
&self
) -> Result<HashMap<FeedID, i64>, NewsFlashError>
[src]
&self
) -> Result<HashMap<FeedID, i64>, NewsFlashError>
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]
&self,
article_id: &ArticleID
) -> Result<Vec<Tag>, NewsFlashError>
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]
&self,
filter: ArticleFilter<'_>
) -> Result<Vec<Article>, NewsFlashError>
pub fn get_article(&self, id: &ArticleID) -> Result<Article, NewsFlashError>
[src]
pub fn get_fat_articles(
&self,
filter: ArticleFilter<'_>
) -> Result<Vec<FatArticle>, NewsFlashError>
[src]
&self,
filter: ArticleFilter<'_>
) -> Result<Vec<FatArticle>, NewsFlashError>
pub fn get_fat_article(
&self,
id: &ArticleID
) -> Result<FatArticle, NewsFlashError>
[src]
&self,
id: &ArticleID
) -> Result<FatArticle, NewsFlashError>
pub async fn article_download_images(
&self,
id: &ArticleID,
client: &Client
) -> Result<FatArticle, NewsFlashError>
[src]
&self,
id: &ArticleID,
client: &Client
) -> Result<FatArticle, NewsFlashError>
pub async fn article_scrap_content(
&self,
id: &ArticleID,
client: &Client
) -> Result<FatArticle, NewsFlashError>
[src]
&self,
id: &ArticleID,
client: &Client
) -> Result<FatArticle, NewsFlashError>
Auto Trait Implementations
impl !RefUnwindSafe for NewsFlash
impl Send for NewsFlash
impl Sync for NewsFlash
impl Unpin for NewsFlash
impl !UnwindSafe for NewsFlash
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoSql for T
[src]
pub fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
pub fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]
&'a Self: AsExpression<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,