Move the Release info structs to new tree

This commit is contained in:
2025-05-27 20:42:05 -05:00
parent 351c4902ae
commit 5f666a8179
3 changed files with 33 additions and 35 deletions

View File

@@ -1,5 +1,33 @@
use serde::{Deserialize, Serialize};
pub struct Release;
#[derive(Debug, Deserialize, Serialize)]
pub struct Release {
id: usize,
tag_name: String,
target_commitish: String,
name: String,
body: String,
url: String,
html_url: String,
tarball_url: String,
zipball_url: String,
upload_url: String,
draft: bool,
prerelease: bool,
created_at: String,
published_at: String,
author: Author,
}
#[derive(Debug, Deserialize, Serialize)]
pub struct Author {
id: usize,
login: String,
login_name: String,
source_id: usize,
full_name: String,
email: String,
}
pub struct CreateReleaseOption;