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 Unit {
    /// The name of unit.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// The abbrevation for the unit
    #[serde(rename = "abbrevation", skip_serializing_if = "Option::is_none")]
    pub abbrevation: Option<String>,
    /// Name of the ontology this unit belongs too.
    #[serde(rename = "ontology", skip_serializing_if = "Option::is_none")]
    pub ontology: Option<String>,
    /// category of unit.
    #[serde(rename = "category", skip_serializing_if = "Option::is_none")]
    pub category: Option<String>,
}

impl Unit {
    pub fn new() -> Unit {
        Unit {
            name: None,
            abbrevation: None,
            ontology: None,
            category: None,
        }
    }
}