argoflows 0.1.1

Argoflows lets you seamlessly integrate and manage Argo Workflows directly from your Rust applications.
Documentation
use serde::{Deserialize, Serialize};

use crate::types::{artifact, workflow};

#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
pub struct Arguments {
    /// `Artifacts` is the list of artifacts to pass to the template or workflow.
    #[serde(rename = "artifacts", skip_serializing_if = "Option::is_none")]
    pub artifacts: Option<Vec<artifact::Artifact>>,

    /// `Parameters` is the list of parameters to pass to the template or workflow.
    #[serde(rename = "parameters", skip_serializing_if = "Option::is_none")]
    pub parameters: Option<Vec<workflow::Parameter>>,
}

impl Arguments {
    pub fn new() -> Self {
        Arguments {
            ..Default::default()
        }
    }
}