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.2
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// FinalDestinationResponse : A response from the API. The `responses` are in the same order as the original  `queries` from the request. 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FinalDestinationResponse {
    #[serde(rename = "responses")]
    pub responses: Vec<models::FinalDestinationHits>,
    #[serde(rename = "logging", skip_serializing_if = "Option::is_none")]
    pub logging: Option<Box<models::FinalDestinationLogging>>,
    #[serde(rename = "version")]
    pub version: String,
    #[serde(rename = "request_id")]
    pub request_id: uuid::Uuid,
}

impl FinalDestinationResponse {
    /// A response from the API. The `responses` are in the same order as the original  `queries` from the request. 
    pub fn new(responses: Vec<models::FinalDestinationHits>, version: String, request_id: uuid::Uuid) -> FinalDestinationResponse {
        FinalDestinationResponse {
            responses,
            logging: None,
            version,
            request_id,
        }
    }
}