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