windmill_api/models/
publication_data.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.598.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 PublicationData {
16    #[serde(rename = "table_to_track", skip_serializing_if = "Option::is_none")]
17    pub table_to_track: Option<Vec<models::Relations>>,
18    #[serde(rename = "transaction_to_track")]
19    pub transaction_to_track: Vec<String>,
20}
21
22impl PublicationData {
23    pub fn new(transaction_to_track: Vec<String>) -> PublicationData {
24        PublicationData {
25            table_to_track: None,
26            transaction_to_track,
27        }
28    }
29}
30