/* * 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, #[serde(rename = "ignored", skip_serializing_if = "Option::is_none")] pub ignored: Option, #[serde(rename = "reason", skip_serializing_if = "Option::is_none")] pub reason: Option, #[serde(rename = "repository_url", skip_serializing_if = "Option::is_none")] pub repository_url: Option, #[serde(rename = "subscribed", skip_serializing_if = "Option::is_none")] pub subscribed: Option, #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, } 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, } } }