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 UpdateInst {
    /// Instrument name
    #[serde(rename = "inst_name")]
    pub inst_name: String,
    /// More information on instrument
    #[serde(rename = "inst_description", skip_serializing_if = "Option::is_none")]
    pub inst_description: Option<String>,
    /// tags array
    #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
    pub tags: Option<Vec<String>>,
    /// user metadata on instruments
    #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")]
    pub metadata: Option<serde_json::Value>,
}

impl UpdateInst {
    pub fn new(inst_name: String) -> UpdateInst {
        UpdateInst {
            inst_name,
            inst_description: None,
            tags: None,
            metadata: None,
        }
    }
}