tapis-streams 0.3.0

Manage Tapis Streams API.
Documentation
/*
 * Streams API
 *
 * Manage Tapis Streams API.
 *
 * The version of the OpenAPI document: 1
 * 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 Archive {
    /// the unique id assigned to the archive
    #[serde(rename = "archive_id", skip_serializing_if = "Option::is_none")]
    pub archive_id: Option<String>,
    /// The type of archive object - system or chords
    #[serde(rename = "archive_type", skip_serializing_if = "Option::is_none")]
    pub archive_type: Option<ArchiveType>,
    /// ISO8601 datetime string for object creation date
    #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
    pub created_at: Option<String>,
    /// Owner of this archive
    #[serde(rename = "owner", skip_serializing_if = "Option::is_none")]
    pub owner: Option<String>,
    #[serde(rename = "settings", skip_serializing_if = "Option::is_none")]
    pub settings: Option<Box<models::NewArchiveSettings>>,
}

impl Archive {
    pub fn new() -> Archive {
        Archive {
            archive_id: None,
            archive_type: None,
            created_at: None,
            owner: None,
            settings: None,
        }
    }
}
/// The type of archive object - system or chords
#[derive(
    Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize, Default,
)]
pub enum ArchiveType {
    #[serde(rename = "system")]
    #[default]
    System,
    #[serde(rename = "chords")]
    Chords,
}