/* * 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}; /// PullReview : PullReview represents a pull request review #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct PullReview { #[serde(rename = "body", skip_serializing_if = "Option::is_none")] pub body: Option, #[serde(rename = "comments_count", skip_serializing_if = "Option::is_none")] pub comments_count: Option, #[serde(rename = "commit_id", skip_serializing_if = "Option::is_none")] pub commit_id: Option, #[serde(rename = "dismissed", skip_serializing_if = "Option::is_none")] pub dismissed: 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 = "official", skip_serializing_if = "Option::is_none")] pub official: Option, #[serde(rename = "pull_request_url", skip_serializing_if = "Option::is_none")] pub pull_request_url: Option, #[serde(rename = "stale", skip_serializing_if = "Option::is_none")] pub stale: Option, /// ReviewStateType review state type #[serde(rename = "state", skip_serializing_if = "Option::is_none")] pub state: Option, #[serde(rename = "submitted_at", skip_serializing_if = "Option::is_none")] pub submitted_at: Option, #[serde(rename = "team", skip_serializing_if = "Option::is_none")] pub team: 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 PullReview { /// PullReview represents a pull request review pub fn new() -> PullReview { PullReview { body: None, comments_count: None, commit_id: None, dismissed: None, html_url: None, id: None, official: None, pull_request_url: None, stale: None, state: None, submitted_at: None, team: None, updated_at: None, user: None, } } }