/*
 * 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};

/// MeasurementValues : Measurement objects. Example [{\"temp1\":\"75.0\",\"pc_hmd\":\"34\",\"datetime\":\"2021-05-15T15:23:00+05:00\"},{\"temp1\":\"77.0\",\"pc_hmd\":\"36\",\"datetime\":\"2021-05-15T15:54:00+05:00\"}]
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct MeasurementValues {
    /// Datetime ISO8601 formated string
    #[serde(rename = "datetime")]
    pub datetime: String,
}

impl MeasurementValues {
    /// Measurement objects. Example [{\"temp1\":\"75.0\",\"pc_hmd\":\"34\",\"datetime\":\"2021-05-15T15:23:00+05:00\"},{\"temp1\":\"77.0\",\"pc_hmd\":\"36\",\"datetime\":\"2021-05-15T15:54:00+05:00\"}]
    pub fn new(datetime: String) -> MeasurementValues {
        MeasurementValues { datetime }
    }
}
