Skip to main content

windmill_api/models/
amqp_exchange.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.770.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 AmqpExchange {
16    /// Name of the exchange to bind the consumed queue to
17    #[serde(rename = "exchange_name")]
18    pub exchange_name: String,
19    /// Routing keys used to bind the queue to the exchange
20    #[serde(rename = "routing_keys", skip_serializing_if = "Option::is_none")]
21    pub routing_keys: Option<Vec<String>>,
22}
23
24impl AmqpExchange {
25    pub fn new(exchange_name: String) -> AmqpExchange {
26        AmqpExchange {
27            exchange_name,
28            routing_keys: None,
29        }
30    }
31}
32