/*
 * 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 Uses {
    #[serde(rename = "name")]
    pub name: String,
    #[serde(rename = "source")]
    pub source: Box<models::GitRepository>,
}

impl Uses {
    pub fn new(name: String, source: models::GitRepository) -> Uses {
        Uses {
            name,
            source: Box::new(source),
        }
    }
}
