Rewrite rust (#38)
Co-authored-by: kjuulh <contact@kjuulh.io> Reviewed-on: https://git.front.kjuulh.io/kjuulh/octopush/pulls/38
This commit is contained in:
45
crates/gitea_raw_client/src/models/watch_info.rs
Normal file
45
crates/gitea_raw_client/src/models/watch_info.rs
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Gitea API.
|
||||
*
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.17.3
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// WatchInfo : WatchInfo represents an API watch status of one repository
|
||||
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct WatchInfo {
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "ignored", skip_serializing_if = "Option::is_none")]
|
||||
pub ignored: Option<bool>,
|
||||
#[serde(rename = "reason", skip_serializing_if = "Option::is_none")]
|
||||
pub reason: Option<serde_json::Value>,
|
||||
#[serde(rename = "repository_url", skip_serializing_if = "Option::is_none")]
|
||||
pub repository_url: Option<String>,
|
||||
#[serde(rename = "subscribed", skip_serializing_if = "Option::is_none")]
|
||||
pub subscribed: Option<bool>,
|
||||
#[serde(rename = "url", skip_serializing_if = "Option::is_none")]
|
||||
pub url: Option<String>,
|
||||
}
|
||||
|
||||
impl WatchInfo {
|
||||
/// WatchInfo represents an API watch status of one repository
|
||||
pub fn new() -> WatchInfo {
|
||||
WatchInfo {
|
||||
created_at: None,
|
||||
ignored: None,
|
||||
reason: None,
|
||||
repository_url: None,
|
||||
subscribed: None,
|
||||
url: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user