clique_types/manifest/
input.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, Serialize, Deserialize)]
4#[serde(rename_all = "kebab-case")]
5pub struct Input {
6    #[serde(rename = "type")]
7    pub type_: String,
8    #[serde(skip_serializing_if = "Option::is_none")]
9    pub description: Option<String>,
10}
11
12impl Input {
13    pub fn new(type_: String) -> Self {
14        Self {
15            type_,
16            description: None,
17        }
18    }
19}