1use crate::author::Author;
2use crate::url::Url;
3use serde::{Deserialize, Serialize};
8
9#[derive(Serialize, Deserialize, Debug)]
13pub struct ReposAPIResponse {
14 pub results: Vec<Repo>,
15 pub count: usize,
16 pub next: Option<Url>,
17 pub previous: Option<Url>,
18 pub total_pages: usize,
19}
20
21#[derive(Serialize, Deserialize, Debug)]
25pub struct Repo {
26 pub name: String,
27 pub private: bool,
28 pub updatestamp: String, pub author: Author,
30 pub language: Option<String>,
31 pub branch: Option<String>,
32 pub active: bool,
33 pub activated: bool,
34}