gitbundle_sdk/models/
commit_with_path_rename_details.rs

1/*
2 * GitBundle API
3 *
4 * GitBundle API documentation.
5 *
6 * The version of the OpenAPI document: 3.3.0
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 CommitWithPathRenameDetails {
17    #[serde(rename = "commit")]
18    pub commit: Box<models::Commit>,
19    #[serde(
20        rename = "path_rename_details",
21        default,
22        with = "::serde_with::rust::double_option",
23        skip_serializing_if = "Option::is_none"
24    )]
25    pub path_rename_details: Option<Option<Box<models::PathRenameDetails>>>,
26}
27
28impl CommitWithPathRenameDetails {
29    pub fn new(commit: models::Commit) -> CommitWithPathRenameDetails {
30        CommitWithPathRenameDetails {
31            commit: Box::new(commit),
32            path_rename_details: None,
33        }
34    }
35}