/*
 * 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 Measurements {
    #[serde(rename = "instrument", skip_serializing_if = "Option::is_none")]
    pub instrument: Option<models::Instrument>,
    #[serde(rename = "site", skip_serializing_if = "Option::is_none")]
    pub site: Option<models::Site>,
    /// The count of measurements records.
    #[serde(
        rename = "measurements_in_file",
        skip_serializing_if = "Option::is_none"
    )]
    pub measurements_in_file: Option<i32>,
}

impl Measurements {
    pub fn new() -> Measurements {
        Measurements {
            instrument: None,
            site: None,
            measurements_in_file: None,
        }
    }
}
