// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
/// Reject a specific version of a review, with a required reason.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct RejectReviewRequest {
    /// Exact content-addressed key of the version to reject.
    pub version_id: String,
    /// Required, non-empty rejection reason.
    pub reason: String,
}
impl RejectReviewRequest {
    /// Construct a new `RejectReviewRequest` with the required fields set.
    #[allow(deprecated)]
    pub fn new(version_id: impl Into<String>, reason: impl Into<String>) -> Self {
        Self {
            version_id: version_id.into(),
            reason: reason.into(),
        }
    }
}
