Skip to main content

windmill_api/models/
search_logs_index_200_response.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.792.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct SearchLogsIndex200Response {
16    /// a list of the terms that couldn't be parsed (and thus ignored)
17    #[serde(rename = "query_parse_errors", skip_serializing_if = "Option::is_none")]
18    pub query_parse_errors: Option<Vec<String>>,
19    /// log files that matched the query
20    #[serde(rename = "hits", skip_serializing_if = "Option::is_none")]
21    pub hits: Option<Vec<models::LogSearchHit>>,
22}
23
24impl SearchLogsIndex200Response {
25    pub fn new() -> SearchLogsIndex200Response {
26        SearchLogsIndex200Response {
27            query_parse_errors: None,
28            hits: None,
29        }
30    }
31}
32