1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
use serde::Deserialize;

#[derive(Clone, Debug, Deserialize)]
pub struct Category {
    pub id: String,
    pub label: String,
}

#[derive(Clone, Debug, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Feed {
    pub id: String,
    pub title: String,
    pub categories: Vec<Category>,
    pub url: String,
    pub html_url: String,
    pub icon_url: String,
    pub sortid: Option<String>,
}

#[derive(Clone, Debug, Deserialize)]
pub struct Feeds {
    pub subscriptions: Vec<Feed>,
}

#[derive(Clone, Debug, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct QuickFeed {
    pub num_results: u64,
    pub query: String,
    pub stream_id: String,
    pub stream_name: Option<String>,
}