30 lines
718 B
Rust
30 lines
718 B
Rust
/*
|
|
* 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};
|
|
|
|
/// EditGitHookOption : EditGitHookOption options when modifying one Git hook
|
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
|
pub struct EditGitHookOption {
|
|
#[serde(rename = "content", skip_serializing_if = "Option::is_none")]
|
|
pub content: Option<String>,
|
|
}
|
|
|
|
impl EditGitHookOption {
|
|
/// EditGitHookOption options when modifying one Git hook
|
|
pub fn new() -> EditGitHookOption {
|
|
EditGitHookOption {
|
|
content: None,
|
|
}
|
|
}
|
|
}
|
|
|