speechmatics 0.4.0

An async rust SDK for the Speechmatics API
Documentation
/*
 * Speechmatics ASR REST API
 *
 * The Speechmatics Automatic Speech Recognition REST API is used to submit ASR jobs and receive the results. 
 *
 * The version of the OpenAPI document: 2.0.0
 * Contact: support@speechmatics.com
 * Generated by: https://openapi-generator.tech
 */

use crate::batch::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UsageResponse {
    #[serde(rename = "since")]
    pub since: String,
    #[serde(rename = "until")]
    pub until: String,
    #[serde(rename = "summary")]
    pub summary: Vec<models::UsageDetails>,
    #[serde(rename = "details")]
    pub details: Vec<models::UsageDetails>,
}

impl UsageResponse {
    pub fn new(since: String, until: String, summary: Vec<models::UsageDetails>, details: Vec<models::UsageDetails>) -> UsageResponse {
        UsageResponse {
            since,
            until,
            summary,
            details,
        }
    }
}