make objects debuggable
This commit is contained in:
parent
94218a7ca1
commit
1c5fb8a0f0
|
@ -1,13 +1,13 @@
|
||||||
use serde::{Serialize, Deserialize};
|
use serde::{Serialize, Deserialize};
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Clone)]
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||||
pub struct User {
|
pub struct User {
|
||||||
pub id: i64,
|
pub id: i64,
|
||||||
pub login: String,
|
pub login: String,
|
||||||
pub full_name: String
|
pub full_name: String
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Clone)]
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||||
pub struct Repo {
|
pub struct Repo {
|
||||||
pub id: i64,
|
pub id: i64,
|
||||||
pub owner: User,
|
pub owner: User,
|
||||||
|
@ -19,7 +19,7 @@ pub struct Repo {
|
||||||
pub has_issues: bool
|
pub has_issues: bool
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Clone)]
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||||
pub struct Branch {
|
pub struct Branch {
|
||||||
pub label: String,
|
pub label: String,
|
||||||
pub sha: String,
|
pub sha: String,
|
||||||
|
@ -27,7 +27,7 @@ pub struct Branch {
|
||||||
pub repo: Repo
|
pub repo: Repo
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Clone)]
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||||
pub struct Pull {
|
pub struct Pull {
|
||||||
pub id: i64,
|
pub id: i64,
|
||||||
pub url: String,
|
pub url: String,
|
||||||
|
|
Loading…
Reference in New Issue