diff options
Diffstat (limited to 'crates/common/tedge_config/src/tedge_config_dto.rs')
-rw-r--r-- | crates/common/tedge_config/src/tedge_config_dto.rs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/crates/common/tedge_config/src/tedge_config_dto.rs b/crates/common/tedge_config/src/tedge_config_dto.rs index ae9cd15f..75b576b6 100644 --- a/crates/common/tedge_config/src/tedge_config_dto.rs +++ b/crates/common/tedge_config/src/tedge_config_dto.rs @@ -25,6 +25,12 @@ pub(crate) struct TEdgeConfigDto { #[serde(default)] pub(crate) tmp: PathConfigDto, + + #[serde(default)] + pub(crate) logs: PathConfigDto, + + #[serde(default)] + pub(crate) run: PathConfigDto, } /// Represents the device specific configurations defined in the [device] section @@ -66,6 +72,9 @@ pub(crate) struct CumulocityConfigDto { /// Boolean whether Azure mapper adds timestamp or not. pub(crate) mapper_timestamp: Option<bool>, + + /// Set of c8y templates used for subscriptions. + pub(crate) smartrest_templates: Option<TemplatesSet>, } #[derive(Debug, Default, Deserialize, Serialize)] @@ -81,8 +90,9 @@ pub(crate) struct AzureConfigDto { #[serde(deny_unknown_fields)] pub(crate) struct MqttConfigDto { pub(crate) port: Option<u16>, + pub(crate) bind_address: Option<IpAddress>, pub(crate) external_port: Option<u16>, - pub(crate) external_bind_address: Option<String>, + pub(crate) external_bind_address: Option<IpAddress>, pub(crate) external_bind_interface: Option<String>, pub(crate) external_capath: Option<FilePath>, pub(crate) external_certfile: Option<FilePath>, @@ -99,5 +109,5 @@ pub(crate) struct SoftwareConfigDto { #[serde(deny_unknown_fields)] pub(crate) struct PathConfigDto { #[serde(rename = "path")] - pub(crate) tmp_path: Option<FilePath>, + pub(crate) dir_path: Option<FilePath>, } |