Skip to main content

gitea_client/models/
lock_issue_option.rs

1/*
2 * Gitea API
3 *
4 * This documentation describes the Gitea API.
5 *
6 * The version of the OpenAPI document: 1.25.2
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// LockIssueOption : LockIssueOption options to lock an issue
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct LockIssueOption {
17    #[serde(rename = "lock_reason", skip_serializing_if = "Option::is_none")]
18    pub lock_reason: Option<String>,
19}
20
21impl LockIssueOption {
22    /// LockIssueOption options to lock an issue
23    pub fn new() -> LockIssueOption {
24        LockIssueOption {
25            lock_reason: None,
26        }
27    }
28}
29