Skip to main content

tapis_workflows/models/
req_github_cred.rs

1/*
2 * Tapis Workflows API
3 *
4 * Create and manage pipelines
5 *
6 * The version of the OpenAPI document: 1.6.0
7 * Contact: cicsupport@tacc.utexas.edu
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ReqGithubCred {
16    #[serde(
17        rename = "personal_access_token",
18        skip_serializing_if = "Option::is_none"
19    )]
20    pub personal_access_token: Option<String>,
21    #[serde(rename = "username", skip_serializing_if = "Option::is_none")]
22    pub username: Option<String>,
23}
24
25impl ReqGithubCred {
26    pub fn new() -> ReqGithubCred {
27        ReqGithubCred {
28            personal_access_token: None,
29            username: None,
30        }
31    }
32}