/*
 * 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 NewMeasurement {
    #[serde(rename = "inst_id")]
    pub inst_id: String,
    #[serde(rename = "vars")]
    pub vars: Vec<models::MeasurementValues>,
}

impl NewMeasurement {
    pub fn new(inst_id: String, vars: Vec<models::MeasurementValues>) -> NewMeasurement {
        NewMeasurement { inst_id, vars }
    }
}
