Struct news_flash::models::sync_result::SyncResult
source · pub struct SyncResult {
pub feeds: Option<Vec<Feed>>,
pub categories: Option<Vec<Category>>,
pub feed_mappings: Option<Vec<FeedMapping>>,
pub category_mappings: Option<Vec<CategoryMapping>>,
pub tags: Option<Vec<Tag>>,
pub headlines: Option<Vec<Headline>>,
pub articles: Option<Vec<FatArticle>>,
pub enclosures: Option<Vec<Enclosure>>,
pub taggings: Option<Vec<Tagging>>,
}
Fields
feeds: Option<Vec<Feed>>
categories: Option<Vec<Category>>
feed_mappings: Option<Vec<FeedMapping>>
category_mappings: Option<Vec<CategoryMapping>>
headlines: Option<Vec<Headline>>
articles: Option<Vec<FatArticle>>
enclosures: Option<Vec<Enclosure>>
taggings: Option<Vec<Tagging>>
Implementations
sourceimpl SyncResult
impl SyncResult
pub fn remove_old_articles(self, older_than: Option<Duration>) -> Self
pub fn generate_tag_colors(self, db_tags: &[Tag]) -> Self
Auto Trait Implementations
impl RefUnwindSafe for SyncResult
impl Send for SyncResult
impl Sync for SyncResult
impl Unpin for SyncResult
impl UnwindSafe for SyncResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoSql for T
impl<T> IntoSql for T
sourcefn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
Convert
self
to an expression for Diesel’s query builder. Read moresourcefn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
Convert
&self
to an expression for Diesel’s query builder. Read more