mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-20 23:02:34 +02:00
To align input definitions with the SourceEditor, inputs are now defined globally in the inputs section of the config file.
Each source can reference one or more inputs by their name in the inputs attribute.
This commit is contained in:
@@ -302,7 +302,7 @@ pub struct ConfigInputDto {
|
||||
pub options: Option<ConfigInputOptionsDto>,
|
||||
#[serde(default, skip_serializing_if = "is_blank_optional_string")]
|
||||
pub cache_duration: Option<String>,
|
||||
#[serde(skip, skip_serializing_if = "is_zero_u16")]
|
||||
#[serde(skip)]
|
||||
pub cache_duration_seconds: u64,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none", serialize_with = "serialize_option_vec_flow_map_items")]
|
||||
pub aliases: Option<Vec<ConfigInputAliasDto>>,
|
||||
|
||||
@@ -5,7 +5,7 @@ use crate::utils::{is_false, is_blank_optional_string, is_blank_optional_str};
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct TelegramMessagingConfigDto {
|
||||
pub bot_token: String,
|
||||
#[serde(skip_serializing_if = "Vec::is_empty")]
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
pub chat_ids: Vec<String>,
|
||||
#[serde(default, skip_serializing_if = "is_false")]
|
||||
pub markdown: bool,
|
||||
|
||||
Reference in New Issue
Block a user