allow omitting permissions in config

This commit is contained in:
Scott Lamb 2022-03-16 17:51:13 -07:00
parent 4addf3c90c
commit e9ac61f15c

View File

@ -94,8 +94,13 @@ pub enum AddressConfig {
#[derive(Debug, Default, Deserialize)] #[derive(Debug, Default, Deserialize)]
#[serde(deny_unknown_fields)] #[serde(deny_unknown_fields)]
pub struct Permissions { pub struct Permissions {
#[serde(default)]
view_video: bool, view_video: bool,
#[serde(default)]
read_camera_configs: bool, read_camera_configs: bool,
#[serde(default)]
update_signals: bool, update_signals: bool,
} }