windmill_api/models/
get_all_topic_subscription.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GetAllTopicSubscription {
16 #[serde(rename = "topic_id")]
17 pub topic_id: String,
18 #[serde(rename = "project_id", skip_serializing_if = "Option::is_none")]
19 pub project_id: Option<String>,
20}
21
22impl GetAllTopicSubscription {
23 pub fn new(topic_id: String) -> GetAllTopicSubscription {
24 GetAllTopicSubscription {
25 topic_id,
26 project_id: None,
27 }
28 }
29}
30