tapis-globus-proxy 0.3.1

The Tapis Globus Proxy API proxies calls to Globus coming from a Tapis service.
Documentation
/*
 * Tapis Globus Proxy API
 *
 * The Tapis Globus Proxy API proxies calls to Globus coming from a Tapis service.
 *
 * The version of the OpenAPI document: 1.3.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 GlobusTransferItem {
    #[serde(rename = "source_path")]
    pub source_path: String,
    #[serde(rename = "destination_path")]
    pub destination_path: String,
    /// Must be true for a directory path and false for a file.
    #[serde(rename = "recursive")]
    pub recursive: bool,
}

impl GlobusTransferItem {
    pub fn new(
        source_path: String,
        destination_path: String,
        recursive: bool,
    ) -> GlobusTransferItem {
        GlobusTransferItem {
            source_path,
            destination_path,
            recursive,
        }
    }
}