Skip to main content

tapis_workflows/models/
req_dockerhub_destination.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 ReqDockerhubDestination {
16    #[serde(rename = "type")]
17    pub r#type: models::EnumDestinationType,
18    #[serde(rename = "credentials", skip_serializing_if = "Option::is_none")]
19    pub credentials: Option<Box<models::ReqDockerhubCred>>,
20    #[serde(rename = "identity_uuid", skip_serializing_if = "Option::is_none")]
21    pub identity_uuid: Option<uuid::Uuid>,
22    #[serde(rename = "tag", skip_serializing_if = "Option::is_none")]
23    pub tag: Option<String>,
24    #[serde(rename = "url")]
25    pub url: String,
26}
27
28impl ReqDockerhubDestination {
29    pub fn new(r#type: models::EnumDestinationType, url: String) -> ReqDockerhubDestination {
30        ReqDockerhubDestination {
31            r#type,
32            credentials: None,
33            identity_uuid: None,
34            tag: None,
35            url,
36        }
37    }
38}