Removed feeds module since no longer needed
All checks were successful
Run Tests on Code / run-tests (push) Successful in 0s
All checks were successful
Run Tests on Code / run-tests (push) Successful in 0s
This commit is contained in:
parent
e7bbe9cf03
commit
7b712727bd
1 changed files with 0 additions and 85 deletions
|
@ -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,
|
||||
}
|
Loading…
Reference in a new issue