netbox_openapi/models/
branch_event.rs

1/*
2 * NetBox REST API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 4.4.2-Docker-3.4.1 (4.4)
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// BranchEvent : Adds support for custom fields and tags.
12
13#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct BranchEvent {
15    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
16    pub id: Option<i32>,
17    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
18    pub url: Option<String>,
19    #[serde(rename = "display", skip_serializing_if = "Option::is_none")]
20    pub display: Option<String>,
21    #[serde(rename = "time", skip_serializing_if = "Option::is_none")]
22    pub time: Option<String>,
23    #[serde(rename = "branch", skip_serializing_if = "Option::is_none")]
24    pub branch: Option<Box<crate::models::BriefBranch>>,
25    #[serde(rename = "user", skip_serializing_if = "Option::is_none")]
26    pub user: Option<Box<crate::models::BriefUser>>,
27    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
28    pub r#type: Option<Box<crate::models::BranchEventType>>,
29}
30
31impl BranchEvent {
32    /// Adds support for custom fields and tags.
33    pub fn new() -> BranchEvent {
34        BranchEvent {
35            id: None,
36            url: None,
37            display: None,
38            time: None,
39            branch: None,
40            user: None,
41            r#type: None,
42        }
43    }
44}