chore(backend): clearer names for some structures

Signed-off-by: Lucien Cartier-Tilet <lucien@phundrak.com>
This commit is contained in:
Lucien Cartier-Tilet 2023-03-15 16:33:44 +01:00
parent c2666c0107
commit a1f29c71f6
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -17,24 +17,24 @@ pub struct User {
#[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Newest {
pub nodes: Vec<Node>,
pub nodes: Vec<Repository>,
}
#[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct MostStarred {
pub nodes: Vec<Node>,
pub nodes: Vec<Repository>,
}
#[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Pinned {
pub nodes: Vec<Node>,
pub nodes: Vec<Repository>,
}
#[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Node {
#[serde(rename_all = "camelCase", rename = "node")]
pub struct Repository {
pub name: String,
pub stargazer_count: i64,
pub fork_count: i64,