chore(backend): clearer names for some structures
Signed-off-by: Lucien Cartier-Tilet <lucien@phundrak.com>
This commit is contained in:
parent
c2666c0107
commit
a1f29c71f6
10
src/data.rs
10
src/data.rs
@ -17,24 +17,24 @@ pub struct User {
|
|||||||
#[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
#[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct Newest {
|
pub struct Newest {
|
||||||
pub nodes: Vec<Node>,
|
pub nodes: Vec<Repository>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
#[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct MostStarred {
|
pub struct MostStarred {
|
||||||
pub nodes: Vec<Node>,
|
pub nodes: Vec<Repository>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
#[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct Pinned {
|
pub struct Pinned {
|
||||||
pub nodes: Vec<Node>,
|
pub nodes: Vec<Repository>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
#[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase", rename = "node")]
|
||||||
pub struct Node {
|
pub struct Repository {
|
||||||
pub name: String,
|
pub name: String,
|
||||||
pub stargazer_count: i64,
|
pub stargazer_count: i64,
|
||||||
pub fork_count: i64,
|
pub fork_count: i64,
|
||||||
|
Loading…
Reference in New Issue
Block a user