gitea_client/models/
note.rs

1/*
2 * Gitea API
3 *
4 * This documentation describes the Gitea API.
5 *
6 * The version of the OpenAPI document: 1.22.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Note : Note contains information related to a git note
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Note {
17    #[serde(rename = "commit", skip_serializing_if = "Option::is_none")]
18    pub commit: Option<Box<models::Commit>>,
19    #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
20    pub message: Option<String>,
21}
22
23impl Note {
24    /// Note contains information related to a git note
25    pub fn new() -> Note {
26        Note {
27            commit: None,
28            message: None,
29        }
30    }
31}
32