windmill-api 1.683.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.683.0
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

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

/// SearchJobsIndex200ResponseIndexMetadata : Metadata about the index current state
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SearchJobsIndex200ResponseIndexMetadata {
    /// Datetime of the most recently indexed job
    #[serde(rename = "indexed_until", skip_serializing_if = "Option::is_none")]
    pub indexed_until: Option<String>,
    /// Is the current indexer service being replaced
    #[serde(rename = "lost_lock_ownership", skip_serializing_if = "Option::is_none")]
    pub lost_lock_ownership: Option<bool>,
    /// Maximum time window in seconds for indexing
    #[serde(rename = "max_index_time_window_secs", skip_serializing_if = "Option::is_none")]
    pub max_index_time_window_secs: Option<f64>,
}

impl SearchJobsIndex200ResponseIndexMetadata {
    /// Metadata about the index current state
    pub fn new() -> SearchJobsIndex200ResponseIndexMetadata {
        SearchJobsIndex200ResponseIndexMetadata {
            indexed_until: None,
            lost_lock_ownership: None,
            max_index_time_window_secs: None,
        }
    }
}