gitea_client/models/
create_fork_option.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/// CreateForkOption : CreateForkOption options for creating a fork
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CreateForkOption {
17    /// name of the forked repository
18    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
19    pub name: Option<String>,
20    /// organization name, if forking into an organization
21    #[serde(rename = "organization", skip_serializing_if = "Option::is_none")]
22    pub organization: Option<String>,
23}
24
25impl CreateForkOption {
26    /// CreateForkOption options for creating a fork
27    pub fn new() -> CreateForkOption {
28        CreateForkOption {
29            name: None,
30            organization: None,
31        }
32    }
33}
34