octopush/crates/gitea_raw_client/src/models/watch_info.rs
Kasper Juul Hermansen 991861db99
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Rewrite rust (#38)
Co-authored-by: kjuulh <contact@kjuulh.io>
Reviewed-on: #38
2022-11-27 11:21:35 +00:00

46 lines
1.3 KiB
Rust

/*
* 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,
}
}
}