mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-11-24 11:37:48 -05:00
@@ -15,6 +15,8 @@ use uuid::Uuid;
|
||||
pub struct TopLevel<'a> {
|
||||
pub time_zone_name: &'a str,
|
||||
|
||||
pub server_version: &'static str,
|
||||
|
||||
// Use a custom serializer which presents the map's values as a sequence and includes the
|
||||
// "days" and "camera_configs" attributes or not, according to the respective bools.
|
||||
#[serde(serialize_with = "TopLevel::serialize_cameras")]
|
||||
|
||||
Reference in New Issue
Block a user