make objects debuggable

This commit is contained in:
b1ek 2023-08-05 03:49:51 +10:00
parent 94218a7ca1
commit 1c5fb8a0f0
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 4 additions and 4 deletions

View File

@ -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,