pub struct RssItem {
pub id: String,
pub feed_name: String,
pub title: String,
pub url: Option<String>,
pub published_at: Option<DateTime<Utc>>,
pub first_seen_at: DateTime<Utc>,
pub downloaded: bool,
pub downloaded_at: Option<DateTime<Utc>>,
pub category: Option<String>,
pub size_bytes: u64,
}Expand description
A discovered item from an RSS feed, persisted in the database.
Fields§
§id: StringFeed entry ID (from the RSS feed)
feed_name: StringName of the feed this came from
title: StringTitle of the entry
url: Option<String>NZB download URL
published_at: Option<DateTime<Utc>>When the entry was published (from feed)
first_seen_at: DateTime<Utc>When we first saw this item
downloaded: boolWhether this item has been downloaded
downloaded_at: Option<DateTime<Utc>>When it was downloaded (if applicable)
category: Option<String>Category used when downloaded
size_bytes: u64Size in bytes (if available from feed)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RssItem
impl<'de> Deserialize<'de> for RssItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RssItem
impl RefUnwindSafe for RssItem
impl Send for RssItem
impl Sync for RssItem
impl Unpin for RssItem
impl UnsafeUnpin for RssItem
impl UnwindSafe for RssItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more