tapis-streams 0.3.1

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 Threshold {
    #[serde(rename = "key")]
    pub key: String,
    #[serde(rename = "operator")]
    pub operator: String,
    #[serde(rename = "val")]
    pub val: f64,
}

impl Threshold {
    pub fn new(key: String, operator: String, val: f64) -> Threshold {
        Threshold { key, operator, val }
    }
}