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:
40
crates/gitea_raw_client/src/models/create_status_option.rs
Normal file
40
crates/gitea_raw_client/src/models/create_status_option.rs
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Gitea API.
|
||||
*
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.17.3
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// CreateStatusOption : CreateStatusOption holds the information needed to create a new CommitStatus for a Commit
|
||||
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct CreateStatusOption {
|
||||
#[serde(rename = "context", skip_serializing_if = "Option::is_none")]
|
||||
pub context: Option<String>,
|
||||
#[serde(rename = "description", skip_serializing_if = "Option::is_none")]
|
||||
pub description: Option<String>,
|
||||
/// CommitStatusState holds the state of a CommitStatus It can be \"pending\", \"success\", \"error\", \"failure\", and \"warning\"
|
||||
#[serde(rename = "state", skip_serializing_if = "Option::is_none")]
|
||||
pub state: Option<String>,
|
||||
#[serde(rename = "target_url", skip_serializing_if = "Option::is_none")]
|
||||
pub target_url: Option<String>,
|
||||
}
|
||||
|
||||
impl CreateStatusOption {
|
||||
/// CreateStatusOption holds the information needed to create a new CommitStatus for a Commit
|
||||
pub fn new() -> CreateStatusOption {
|
||||
CreateStatusOption {
|
||||
context: None,
|
||||
description: None,
|
||||
state: None,
|
||||
target_url: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user