add defaults and alias

This commit is contained in:
Jonathan Baecker 2024-09-27 14:46:12 +02:00
parent 35eac2fa16
commit 9bd96c17a9

View File

@ -328,7 +328,9 @@ pub struct Processing {
pub audio_channels: u8,
pub volume: f64,
pub custom_filter: String,
#[serde(default)]
pub vtt_enable: bool,
#[serde(default)]
pub vtt_dummy: Option<String>,
#[serde(skip_serializing, skip_deserializing)]
pub cmd: Option<Vec<String>>,
@ -456,6 +458,7 @@ pub struct Text {
pub zmq_stream_socket: Option<String>,
#[serde(skip_serializing, skip_deserializing)]
pub zmq_server_socket: Option<String>,
#[serde(alias = "fontfile")]
pub font: String,
#[serde(skip_serializing, skip_deserializing)]
pub font_path: String,