greader_api/models/
feed.rs1use serde::Deserialize;
2
3#[derive(Clone, Debug, Deserialize)]
4pub struct Category {
5 pub id: String,
6 pub label: String,
7}
8
9#[derive(Clone, Debug, Deserialize)]
10#[serde(rename_all = "camelCase")]
11pub struct Feed {
12 pub id: String,
13 pub title: String,
14 pub categories: Vec<Category>,
15 pub url: String,
16 pub html_url: String,
17 pub icon_url: String,
18 pub sortid: Option<String>,
19}
20
21#[derive(Clone, Debug, Deserialize)]
22pub struct Feeds {
23 pub subscriptions: Vec<Feed>,
24}
25
26#[derive(Clone, Debug, Deserialize)]
27#[serde(rename_all = "camelCase")]
28pub struct QuickFeed {
29 pub num_results: u64,
30 pub query: String,
31 pub stream_id: String,
32 pub stream_name: Option<String>,
33}