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.
This commit is contained in:
Scott Lamb 2021-11-23 09:56:05 -08:00
parent a7c574eb43
commit af9c8bb05a

View File

@ -66,14 +66,6 @@ pub struct Camera<'a> {
pub streams: [Option<Stream<'a>>; 2], pub streams: [Option<Stream<'a>>; 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)] #[derive(Debug, Serialize)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]
pub struct Stream<'a> { pub struct Stream<'a> {