Removed feeds module since no longer needed
All checks were successful
Run Tests on Code / run-tests (push) Successful in 0s

This commit is contained in:
Neshura 2023-12-17 01:43:25 +01:00
parent e7bbe9cf03
commit 7b712727bd
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -1,85 +0,0 @@
use serde_derive::{Deserialize, Serialize};
use crate::config::LemmyCommunities;
macro_rules! api_url {
() => {
"https://labs.j-novel.club/app/v1/".to_string()
};
}
#[derive(Serialize, Deserialize, Clone, PartialEq)]
pub(crate) struct FeedSetting {
pub(crate) id: usize,
pub(crate) series_slug: String,
pub(crate) communities: FeedCommunities,
pub(crate) reddit: Option<FeedRedditSettings>,
}
#[derive(Serialize, Deserialize, Clone, PartialEq)]
pub(crate) struct FeedCommunities {
pub(crate) chapter: Option<LemmyCommunities>,
pub(crate) volume: Option<LemmyCommunities>,
}
#[derive(Serialize, Deserialize, Clone, PartialEq)]
pub(crate) struct FeedRedditSettings {
pub(crate) enabled: bool,
pub(crate) flair: String,
}
// RSS Feed Structs
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
pub(crate) struct FeedData {
pub(crate) version: String,
pub(crate) title: String,
pub(crate) home_page_url: String,
pub(crate) description: String,
pub(crate) author: FeedAuthor,
pub(crate) items: Vec<FeedEntry>,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
pub(crate) struct FeedSeriesData {
pub(crate) title: String,
pub(crate) slug: String,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
pub(crate) struct FeedVolumeData {
pub(crate) title: String,
pub(crate) slug: String,
pub(crate) number: u8,
pub(crate) publishing: String,
pub(crate) cover: FeedCoverData,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
pub(crate) struct FeedChapterData {
pub(crate) title: String,
pub(crate) slug: String,
pub(crate) cover: FeedCoverData,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
pub(crate) struct FeedCoverData {
#[serde(alias = "coverUrl")]
pub(crate) cover: String,
#[serde(alias = "thumbnailUrl")]
pub(crate) thumbnail: String,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
pub(crate) struct FeedAuthor {
pub(crate) name: String,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
pub(crate) struct FeedEntry {
pub(crate) id: String,
pub(crate) url: String,
pub(crate) title: String,
pub(crate) summary: String,
pub(crate) image: Option<String>,
pub(crate) date_published: String,
}