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