Move CreateReleaseOption to new tree
This commit is contained in:
10
src/lib.rs
10
src/lib.rs
@@ -4,16 +4,6 @@ pub mod cli;
|
|||||||
pub mod api;
|
pub mod api;
|
||||||
pub mod structs;
|
pub mod structs;
|
||||||
|
|
||||||
#[derive(Debug, Serialize)]
|
|
||||||
pub struct CreateReleaseOption {
|
|
||||||
pub body: String,
|
|
||||||
pub draft: bool,
|
|
||||||
pub name: String,
|
|
||||||
pub prerelease: bool,
|
|
||||||
pub tag_name: String,
|
|
||||||
pub target_commitish: String,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Serialize)]
|
#[derive(Debug, Deserialize, Serialize)]
|
||||||
pub struct ApiError {
|
pub struct ApiError {
|
||||||
message: String,
|
message: String,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
use gt_tools::CreateReleaseOption;
|
use gt_tools::structs::release::CreateReleaseOption;
|
||||||
use gt_tools::{structs::release::Release, cli::Args};
|
use gt_tools::{structs::release::Release, cli::Args};
|
||||||
use reqwest::multipart::Part;
|
use reqwest::multipart::Part;
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,15 @@ pub struct Author {
|
|||||||
email: String,
|
email: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct CreateReleaseOption;
|
#[derive(Debug, Serialize)]
|
||||||
|
pub struct CreateReleaseOption {
|
||||||
|
pub body: String,
|
||||||
|
pub draft: bool,
|
||||||
|
pub name: String,
|
||||||
|
pub prerelease: bool,
|
||||||
|
pub tag_name: String,
|
||||||
|
pub target_commitish: String,
|
||||||
|
}
|
||||||
|
|
||||||
pub struct EditReleaseOption;
|
pub struct EditReleaseOption;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user