pub struct Catalog {
pub episodes: Vec<Episode>,
pub info: Vec<InfoPage>,
pub fetched_at: i64,
pub enriched: bool,
}Expand description
The resolved episode list together with when it was built.
Fields§
§episodes: Vec<Episode>Every episode the feed listed, in catalog order.
info: Vec<InfoPage>The site’s information pages, keyed by their slug.
Deliberately separate from episodes: every count, ordering, and next-or-previous
computation is over episodes alone, and keeping these out of that list makes it true
by construction rather than by remembering to filter.
fetched_at: i64When this catalog was built from the network, as whole seconds since the Unix epoch. A catalog read back from disk keeps its fetch time, so callers can tell how stale it is.
enriched: boolWhether the client bundle enriched this catalog. False means every episode carries feed fields only.
Implementations§
Source§impl Catalog
impl Catalog
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Catalog
impl<'de> Deserialize<'de> for Catalog
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
impl StructuralPartialEq for Catalog
Auto Trait Implementations§
impl Freeze for Catalog
impl RefUnwindSafe for Catalog
impl Send for Catalog
impl Sync for Catalog
impl Unpin for Catalog
impl UnsafeUnpin for Catalog
impl UnwindSafe for Catalog
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