Skip to main content

gitbundle_sdk/models/
code_owners_violation.rs

1/*
2 * GitBundle API
3 *
4 * GitBundle API documentation.
5 *
6 * The version of the OpenAPI document: 3.4.1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CodeOwnersViolation {
17    #[serde(rename = "code")]
18    pub code: models::CodeOwnerViolationCode,
19    #[serde(rename = "message")]
20    pub message: String,
21    #[serde(rename = "params")]
22    pub params: Vec<serde_json::Value>,
23}
24
25impl CodeOwnersViolation {
26    pub fn new(
27        code: models::CodeOwnerViolationCode,
28        message: String,
29        params: Vec<serde_json::Value>,
30    ) -> CodeOwnersViolation {
31        CodeOwnersViolation {
32            code,
33            message,
34            params,
35        }
36    }
37}