mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2024-12-27 07:35:56 -05:00
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:
parent
a7c574eb43
commit
af9c8bb05a
@ -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> {
|
||||||
|
Loading…
Reference in New Issue
Block a user