windmill-api 1.885.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.885.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 GetConcurrencyKeyStatus200Response {
    #[serde(rename = "key")]
    pub key: String,
    /// When the job was first due. Set the first time its concurrency limit held it back, and kept after it ran.
    #[serde(rename = "deferred_from", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub deferred_from: Option<Option<String>>,
    /// When the concurrency limit let in a job it had held back, as the time the job was last due. The rest until it started is queue time.
    #[serde(rename = "released_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub released_at: Option<Option<String>>,
}

impl GetConcurrencyKeyStatus200Response {
    pub fn new(key: String) -> GetConcurrencyKeyStatus200Response {
        GetConcurrencyKeyStatus200Response {
            key,
            deferred_from: None,
            released_at: None,
        }
    }
}