1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (C) 2019, 2020 O.S. Systems Sofware LTDA
//
// SPDX-License-Identifier: Apache-2.0

use serde::{Deserialize, Serialize};

pub mod firmware;
pub mod runtime_settings;
pub mod settings;

#[derive(Clone, Debug, Deserialize, Serialize)]
#[serde(deny_unknown_fields)]
pub struct Response {
    pub state: String,
    pub version: String,
    pub config: settings::Settings,
    pub firmware: firmware::Metadata,
    pub runtime_settings: runtime_settings::RuntimeSettings,
}