/*
* 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 AmqpExchange {
/// Name of the exchange to bind the consumed queue to
#[serde(rename = "exchange_name")]
pub exchange_name: String,
/// Routing keys used to bind the queue to the exchange
#[serde(rename = "routing_keys", skip_serializing_if = "Option::is_none")]
pub routing_keys: Option<Vec<String>>,
}
impl AmqpExchange {
pub fn new(exchange_name: String) -> AmqpExchange {
AmqpExchange {
exchange_name,
routing_keys: None,
}
}
}