feed_parser/parsers/mod.rs
1use serde::Deserialize;
2pub mod atom;
3pub mod errors;
4mod internal;
5pub mod rss1;
6pub mod rss2;
7
8/// Represents a feed with various metadata fields.
9///
10/// This struct is used to deserialize feed data from different formats such as Atom, RSS1, and RSS2.
11///
12/// # Fields
13///
14/// * `title` - The title of the feed.
15/// * `link` - The URL link to the feed.
16/// * `description` - An optional description of the feed.
17/// * `summary` - An optional summary of the feed.
18/// * `updated` - An optional field representing the last updated date of the feed.
19/// * `publish_date` - An optional field representing the publish date of the feed.
20/// * `creator` - An optional field representing the creator of the feed.
21/// * `date` - An optional field representing the date associated with the feed.
22/// * `other` - An optional field for any other additional information.
23#[derive(Deserialize, PartialEq, Debug)]
24pub struct Feed {
25 pub title: String,
26 pub link: String,
27 pub description: Option<String>,
28 pub summary: Option<String>,
29 pub updated: Option<String>,
30 pub publish_date: Option<String>,
31 pub creator: Option<String>,
32 pub date: Option<String>,
33 pub other: Option<String>,
34}