gitbundle_sdk/models/
connector_create_input.rs

1/*
2 * GitBundle API
3 *
4 * GitBundle API documentation.
5 *
6 * The version of the OpenAPI document: 3.0.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 ConnectorCreateInput {
17    #[serde(rename = "data")]
18    pub data: String,
19    #[serde(rename = "description")]
20    pub description: String,
21    #[serde(rename = "group_ref")]
22    pub group_ref: String,
23    #[serde(rename = "name")]
24    pub name: String,
25    #[serde(rename = "type")]
26    pub r#type: String,
27}
28
29impl ConnectorCreateInput {
30    pub fn new(
31        data: String,
32        description: String,
33        group_ref: String,
34        name: String,
35        r#type: String,
36    ) -> ConnectorCreateInput {
37        ConnectorCreateInput {
38            data,
39            description,
40            group_ref,
41            name,
42            r#type,
43        }
44    }
45}