/*
 * Tapis Workflows API
 *
 * Create and manage pipelines
 *
 * The version of the OpenAPI document: 1.6.0
 * Contact: cicsupport@tacc.utexas.edu
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ReqLocalDestination {
    #[serde(rename = "type")]
    pub r#type: models::EnumDestinationType,
    #[serde(rename = "filename", skip_serializing_if = "Option::is_none")]
    pub filename: Option<String>,
}

impl ReqLocalDestination {
    pub fn new(r#type: models::EnumDestinationType) -> ReqLocalDestination {
        ReqLocalDestination {
            r#type,
            filename: None,
        }
    }
}
