-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding remaining relevant initial configurations
- Loading branch information
1 parent
33ec076
commit 43da570
Showing
3 changed files
with
102 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,38 @@ | ||
use serde::{Deserialize, Serialize}; | ||
use std::path::PathBuf; | ||
|
||
#[derive(Deserialize, Serialize, Debug, Clone)] | ||
#[serde(deny_unknown_fields)] | ||
pub struct Config { | ||
pub(crate) __required__: bool, | ||
pub(crate) up_streamer_config: UpStreamerConfig, | ||
pub(crate) host_config: HostConfig, | ||
pub(crate) someip_config: SomeipConfig, | ||
} | ||
|
||
#[derive(Deserialize, Serialize, Debug, Clone)] | ||
#[serde(deny_unknown_fields)] | ||
pub struct UpStreamerConfig { | ||
pub(crate) message_queue_size: u16, | ||
} | ||
|
||
#[derive(Deserialize, Serialize, Debug, Clone)] | ||
#[serde(deny_unknown_fields)] | ||
pub struct HostConfig { | ||
pub(crate) transport: HostTransport, | ||
pub(crate) authority: String, | ||
} | ||
|
||
#[derive(Deserialize, Serialize, Debug, Clone)] | ||
#[serde(deny_unknown_fields)] | ||
pub struct SomeipConfig { | ||
pub(crate) authority: String, | ||
pub(crate) config_file: PathBuf, | ||
pub(crate) default_someip_application_id_for_someip_subscriptions: u16, | ||
pub(crate) enabled: bool, | ||
} | ||
|
||
#[derive(Deserialize, Serialize, Debug, Clone)] | ||
pub enum HostTransport { | ||
Zenoh, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters