From af9c8bb05a842ca952d9873853acfa72638bf9e7 Mon Sep 17 00:00:00 2001 From: Scott Lamb Date: Tue, 23 Nov 2021 09:56:05 -0800 Subject: [PATCH] remove obsolete CameraConfig Since 0.7.0, the one in the db package is used both for actual storage within the database and for API use. I left the API-specific version around by accident. --- server/src/json.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/server/src/json.rs b/server/src/json.rs index c5de41e..44819dd 100644 --- a/server/src/json.rs +++ b/server/src/json.rs @@ -66,14 +66,6 @@ pub struct Camera<'a> { pub streams: [Option>; 2], } -#[derive(Debug, Serialize)] -#[serde(rename_all = "camelCase")] -pub struct CameraConfig<'a> { - pub onvif_host: &'a str, - pub username: Option<&'a str>, - pub password: Option<&'a str>, -} - #[derive(Debug, Serialize)] #[serde(rename_all = "camelCase")] pub struct Stream<'a> {