/* * Gitea API * * This documentation describes the Gitea API. * * The version of the OpenAPI document: 1.22.1 * * Generated by: https://openapi-generator.tech */ use crate::models; use serde::{Deserialize, Serialize}; /// TimelineComment : TimelineComment represents a timeline comment (comment of any type) on a commit or issue #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct TimelineComment { #[serde(rename = "assignee", skip_serializing_if = "Option::is_none")] pub assignee: Option>, #[serde(rename = "assignee_team", skip_serializing_if = "Option::is_none")] pub assignee_team: Option>, #[serde(rename = "body", skip_serializing_if = "Option::is_none")] pub body: Option, #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")] pub created_at: Option, #[serde(rename = "dependent_issue", skip_serializing_if = "Option::is_none")] pub dependent_issue: Option>, #[serde(rename = "html_url", skip_serializing_if = "Option::is_none")] pub html_url: Option, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option, #[serde(rename = "issue_url", skip_serializing_if = "Option::is_none")] pub issue_url: Option, #[serde(rename = "label", skip_serializing_if = "Option::is_none")] pub label: Option>, #[serde(rename = "milestone", skip_serializing_if = "Option::is_none")] pub milestone: Option>, #[serde(rename = "new_ref", skip_serializing_if = "Option::is_none")] pub new_ref: Option, #[serde(rename = "new_title", skip_serializing_if = "Option::is_none")] pub new_title: Option, #[serde(rename = "old_milestone", skip_serializing_if = "Option::is_none")] pub old_milestone: Option>, #[serde(rename = "old_project_id", skip_serializing_if = "Option::is_none")] pub old_project_id: Option, #[serde(rename = "old_ref", skip_serializing_if = "Option::is_none")] pub old_ref: Option, #[serde(rename = "old_title", skip_serializing_if = "Option::is_none")] pub old_title: Option, #[serde(rename = "project_id", skip_serializing_if = "Option::is_none")] pub project_id: Option, #[serde(rename = "pull_request_url", skip_serializing_if = "Option::is_none")] pub pull_request_url: Option, #[serde(rename = "ref_action", skip_serializing_if = "Option::is_none")] pub ref_action: Option, #[serde(rename = "ref_comment", skip_serializing_if = "Option::is_none")] pub ref_comment: Option>, /// commit SHA where issue/PR was referenced #[serde(rename = "ref_commit_sha", skip_serializing_if = "Option::is_none")] pub ref_commit_sha: Option, #[serde(rename = "ref_issue", skip_serializing_if = "Option::is_none")] pub ref_issue: Option>, /// whether the assignees were removed or added #[serde(rename = "removed_assignee", skip_serializing_if = "Option::is_none")] pub removed_assignee: Option, #[serde(rename = "resolve_doer", skip_serializing_if = "Option::is_none")] pub resolve_doer: Option>, #[serde(rename = "review_id", skip_serializing_if = "Option::is_none")] pub review_id: Option, #[serde(rename = "tracked_time", skip_serializing_if = "Option::is_none")] pub tracked_time: Option>, #[serde(rename = "type", skip_serializing_if = "Option::is_none")] pub r#type: Option, #[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")] pub updated_at: Option, #[serde(rename = "user", skip_serializing_if = "Option::is_none")] pub user: Option>, } impl TimelineComment { /// TimelineComment represents a timeline comment (comment of any type) on a commit or issue pub fn new() -> TimelineComment { TimelineComment { assignee: None, assignee_team: None, body: None, created_at: None, dependent_issue: None, html_url: None, id: None, issue_url: None, label: None, milestone: None, new_ref: None, new_title: None, old_milestone: None, old_project_id: None, old_ref: None, old_title: None, project_id: None, pull_request_url: None, ref_action: None, ref_comment: None, ref_commit_sha: None, ref_issue: None, removed_assignee: None, resolve_doer: None, review_id: None, tracked_time: None, r#type: None, updated_at: None, user: None, } } }