Skip to main content

tapis_workflows/models/
req_identity.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, Debug, PartialEq, Serialize, Deserialize)]
15#[serde(tag = "type")]
16pub enum ReqIdentity {
17    #[serde(rename = "dockerhub")]
18    Dockerhub(Box<models::ReqDockerhubIdentity>),
19    #[serde(rename = "github")]
20    Github(Box<models::ReqGithubIdentity>),
21}
22
23impl Default for ReqIdentity {
24    fn default() -> Self {
25        Self::Dockerhub(Default::default())
26    }
27}