diff --git a/src/lib.rs b/src/lib.rs index ece927e..6b246a0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,16 +4,6 @@ pub mod cli; pub mod api; 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)] pub struct ApiError { message: String, diff --git a/src/main.rs b/src/main.rs index 8bf8356..b774311 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,4 @@ -use gt_tools::CreateReleaseOption; +use gt_tools::structs::release::CreateReleaseOption; use gt_tools::{structs::release::Release, cli::Args}; use reqwest::multipart::Part; diff --git a/src/structs/release.rs b/src/structs/release.rs index fb02db7..7913276 100644 --- a/src/structs/release.rs +++ b/src/structs/release.rs @@ -29,7 +29,15 @@ pub struct Author { 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;