naurt-api 0.1.3

OpenAPI specification for Naurt's APIs.
Documentation
/*
 * Naurt API
 *
 * OpenAPI specification for Naurt's APIs. 
 *
 * The version of the OpenAPI document: 0.1.0
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// Request : A single request to the API, which can contain up to 200 queries. Each query  is independent and can be of a different type. 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Request {
    #[serde(rename = "queries")]
    pub queries: Vec<models::Query>,
    #[serde(rename = "options", skip_serializing_if = "Option::is_none")]
    pub options: Option<Box<models::Options>>,
}

impl Request {
    /// A single request to the API, which can contain up to 200 queries. Each query  is independent and can be of a different type. 
    pub fn new(queries: Vec<models::Query>) -> Request {
        Request {
            queries,
            options: None,
        }
    }
}