model3 0.2.0

data types for (de)serializing model settings from model3.json files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::path::PathBuf;

#[derive(Debug, Clone, PartialEq, PartialOrd, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "PascalCase")]
#[serde(deny_unknown_fields)]
#[remain::sorted]
pub struct Motion {
  #[serde(skip_serializing_if = "Option::is_none")]
  pub fade_in_time: Option<f64>,
  #[serde(skip_serializing_if = "Option::is_none")]
  pub fade_out_time: Option<f64>,
  pub file: PathBuf,
  #[serde(skip_serializing_if = "Option::is_none")]
  pub motion_sync: Option<String>,
  #[serde(skip_serializing_if = "Option::is_none")]
  pub sound: Option<PathBuf>,
}