Rewrite rust (#38)
Co-authored-by: kjuulh <contact@kjuulh.io> Reviewed-on: https://git.front.kjuulh.io/kjuulh/octopush/pulls/38
This commit was merged in pull request #38.
This commit is contained in:
55
crates/gitea_raw_client/src/models/edit_issue_option.rs
Normal file
55
crates/gitea_raw_client/src/models/edit_issue_option.rs
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Gitea API.
|
||||
*
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.17.3
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// EditIssueOption : EditIssueOption options for editing an issue
|
||||
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct EditIssueOption {
|
||||
/// deprecated
|
||||
#[serde(rename = "assignee", skip_serializing_if = "Option::is_none")]
|
||||
pub assignee: Option<String>,
|
||||
#[serde(rename = "assignees", skip_serializing_if = "Option::is_none")]
|
||||
pub assignees: Option<Vec<String>>,
|
||||
#[serde(rename = "body", skip_serializing_if = "Option::is_none")]
|
||||
pub body: Option<String>,
|
||||
#[serde(rename = "due_date", skip_serializing_if = "Option::is_none")]
|
||||
pub due_date: Option<String>,
|
||||
#[serde(rename = "milestone", skip_serializing_if = "Option::is_none")]
|
||||
pub milestone: Option<i64>,
|
||||
#[serde(rename = "ref", skip_serializing_if = "Option::is_none")]
|
||||
pub r#ref: Option<String>,
|
||||
#[serde(rename = "state", skip_serializing_if = "Option::is_none")]
|
||||
pub state: Option<String>,
|
||||
#[serde(rename = "title", skip_serializing_if = "Option::is_none")]
|
||||
pub title: Option<String>,
|
||||
#[serde(rename = "unset_due_date", skip_serializing_if = "Option::is_none")]
|
||||
pub unset_due_date: Option<bool>,
|
||||
}
|
||||
|
||||
impl EditIssueOption {
|
||||
/// EditIssueOption options for editing an issue
|
||||
pub fn new() -> EditIssueOption {
|
||||
EditIssueOption {
|
||||
assignee: None,
|
||||
assignees: None,
|
||||
body: None,
|
||||
due_date: None,
|
||||
milestone: None,
|
||||
r#ref: None,
|
||||
state: None,
|
||||
title: None,
|
||||
unset_due_date: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user