babelforce-manager-sdk 0.42.3

Rust SDK for the babelforce manager APIs — auth, user & agent management, call reporting, metrics, and task automations.
Documentation
/*
 * task-automation API
 *
 * task-automation engine to automate and customize web based integration processes
 *
 * The version of the OpenAPI document: 3.63.10
 * Contact: support@babelforce.com
 * Generated by: https://openapi-generator.tech
 */

use crate::gen::task_automation::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TaskTimeSeries {
    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
    pub r#type: Option<String>,
    #[serde(rename = "start", skip_serializing_if = "Option::is_none")]
    pub start: Option<chrono::DateTime<chrono::FixedOffset>>,
    #[serde(rename = "end", skip_serializing_if = "Option::is_none")]
    pub end: Option<chrono::DateTime<chrono::FixedOffset>>,
    #[serde(rename = "rate", skip_serializing_if = "Option::is_none")]
    pub rate: Option<models::Rate>,
    /// A ordered list of n time series entries ordered from newest [0] to oldest [n]. Each entry represents a specific Any values that are 0 are omitted.
    #[serde(rename = "timeseries", skip_serializing_if = "Option::is_none")]
    pub timeseries: Option<Vec<models::TimeSeriesEntry>>,
}

impl TaskTimeSeries {
    pub fn new() -> TaskTimeSeries {
        TaskTimeSeries {
            r#type: None,
            start: None,
            end: None,
            rate: None,
            timeseries: None,
        }
    }
}