windmill-api 1.681.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.681.0
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SearchJobsIndex200Response {
    /// 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>>,
    /// the jobs that matched the query
    #[serde(rename = "hits", skip_serializing_if = "Option::is_none")]
    pub hits: Option<Vec<models::JobSearchHit>>,
    /// how many jobs matched in total
    #[serde(rename = "hit_count", skip_serializing_if = "Option::is_none")]
    pub hit_count: Option<f64>,
    #[serde(rename = "index_metadata", skip_serializing_if = "Option::is_none")]
    pub index_metadata: Option<Box<models::SearchJobsIndex200ResponseIndexMetadata>>,
}

impl SearchJobsIndex200Response {
    pub fn new() -> SearchJobsIndex200Response {
        SearchJobsIndex200Response {
            query_parse_errors: None,
            hits: None,
            hit_count: None,
            index_metadata: None,
        }
    }
}