gitea-rs/crates/gitea-client/src/models/pull_review.rs

70 lines
2.4 KiB
Rust
Raw Normal View History

/*
* 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<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<models::Team>>,
#[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
pub updated_at: Option<String>,
#[serde(rename = "user", skip_serializing_if = "Option::is_none")]
pub user: Option<Box<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,
updated_at: None,
user: None,
}
}
}