windmill-api 1.766.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.766.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 AmqpOptions {
    /// Declare the queue (durable) before consuming; when false the queue is declared passively and must already exist
    #[serde(rename = "declare_queue", skip_serializing_if = "Option::is_none")]
    pub declare_queue: Option<bool>,
    /// Maximum number of unacknowledged messages the broker delivers at once (1-65535)
    #[serde(rename = "prefetch_count", skip_serializing_if = "Option::is_none")]
    pub prefetch_count: Option<i32>,
}

impl AmqpOptions {
    pub fn new() -> AmqpOptions {
        AmqpOptions {
            declare_queue: None,
            prefetch_count: None,
        }
    }
}