Skip to main content

gitbundle_sdk/models/
service_account_create_input.rs

1/*
2 * GitBundle API
3 *
4 * GitBundle API documentation.
5 *
6 * The version of the OpenAPI document: 3.4.1
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 ServiceAccountCreateInput {
17    #[serde(rename = "display_name")]
18    pub display_name: String,
19    #[serde(rename = "email")]
20    pub email: String,
21    #[serde(rename = "parent_id")]
22    pub parent_id: i64,
23    #[serde(rename = "parent_type")]
24    pub parent_type: models::ParentResourceType,
25}
26
27impl ServiceAccountCreateInput {
28    pub fn new(
29        display_name: String,
30        email: String,
31        parent_id: i64,
32        parent_type: models::ParentResourceType,
33    ) -> ServiceAccountCreateInput {
34        ServiceAccountCreateInput {
35            display_name,
36            email,
37            parent_id,
38            parent_type,
39        }
40    }
41}