/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.2.0
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SearchLogsIndex200Response {
    /// a list of the terms that couldn't be parsed (and thus ignored)
    #[serde(rename = "query_parse_errors", skip_serializing_if = "Option::is_none")]
    pub query_parse_errors: Option<Vec<String>>,
    /// log files that matched the query
    #[serde(rename = "hits", skip_serializing_if = "Option::is_none")]
    pub hits: Option<Vec<models::LogSearchHit>>,
}

impl SearchLogsIndex200Response {
    pub fn new() -> SearchLogsIndex200Response {
        SearchLogsIndex200Response {
            query_parse_errors: None,
            hits: None,
        }
    }
}

