/*
 * Gitea API.
 *
 * This documentation describes the Gitea API.
 *
 * The version of the OpenAPI document: 1.17.3
 * 
 * Generated by: https://openapi-generator.tech
 */

/// PullReview : PullReview represents a pull request review



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct PullReview {
    #[serde(rename = "body", skip_serializing_if = "Option::is_none")]
    pub body: Option<String>,
    #[serde(rename = "comments_count", skip_serializing_if = "Option::is_none")]
    pub comments_count: Option<i64>,
    #[serde(rename = "commit_id", skip_serializing_if = "Option::is_none")]
    pub commit_id: Option<String>,
    #[serde(rename = "dismissed", skip_serializing_if = "Option::is_none")]
    pub dismissed: Option<bool>,
    #[serde(rename = "html_url", skip_serializing_if = "Option::is_none")]
    pub html_url: Option<String>,
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<i64>,
    #[serde(rename = "official", skip_serializing_if = "Option::is_none")]
    pub official: Option<bool>,
    #[serde(rename = "pull_request_url", skip_serializing_if = "Option::is_none")]
    pub pull_request_url: Option<String>,
    #[serde(rename = "stale", skip_serializing_if = "Option::is_none")]
    pub stale: Option<bool>,
    /// ReviewStateType review state type
    #[serde(rename = "state", skip_serializing_if = "Option::is_none")]
    pub state: Option<String>,
    #[serde(rename = "submitted_at", skip_serializing_if = "Option::is_none")]
    pub submitted_at: Option<String>,
    #[serde(rename = "team", skip_serializing_if = "Option::is_none")]
    pub team: Option<Box<crate::models::Team>>,
    #[serde(rename = "user", skip_serializing_if = "Option::is_none")]
    pub user: Option<Box<crate::models::User>>,
}

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,
            user: None,
        }
    }
}


