Skip to main content

tapis_workflows/models/
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 Destination {
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::DockerhubCred>>,
20    #[serde(rename = "tag", skip_serializing_if = "Option::is_none")]
21    pub tag: Option<String>,
22    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
23    pub url: Option<String>,
24    #[serde(rename = "filename", skip_serializing_if = "Option::is_none")]
25    pub filename: Option<String>,
26}
27
28impl Destination {
29    pub fn new(r#type: models::EnumDestinationType) -> Destination {
30        Destination {
31            r#type,
32            credentials: None,
33            tag: None,
34            url: None,
35            filename: None,
36        }
37    }
38}