pub struct Feed {
pub id: i64,
pub url: String,
pub title: Option<String>,
pub site_url: Option<String>,
pub etag: Option<String>,
pub last_modified: Option<String>,
pub last_polled: Option<String>,
pub next_poll: Option<String>,
pub consecutive_errors: i64,
}Expand description
A cached syndication feed, shared across all DIDs that subscribe to its URL.
This mirrors the PDS-side community.lexicon.rss.subscription.url; the row is
created/updated by the poller, never owned by a single user.
Fields§
§id: i64§url: String§title: Option<String>§site_url: Option<String>§etag: Option<String>HTTP ETag from the last successful fetch, for conditional GET.
last_modified: Option<String>HTTP Last-Modified from the last successful fetch, for conditional GET.
last_polled: Option<String>When we last polled this feed (RFC3339), or None if never.
next_poll: Option<String>When this feed is next due to be polled (RFC3339), or None.
consecutive_errors: i64Count of consecutive poll FAILURES since the last success/304. Drives the exponential poll backoff (reset to 0 on any success or 304).
Trait Implementations§
impl Eq for Feed
impl StructuralPartialEq for Feed
Auto Trait Implementations§
impl Freeze for Feed
impl RefUnwindSafe for Feed
impl Send for Feed
impl Sync for Feed
impl Unpin for Feed
impl UnsafeUnpin for Feed
impl UnwindSafe for Feed
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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