Struct ConfigData

Source
pub struct ConfigData {
Show 23 fields pub sql_interface: SqlInterfaceConfig, pub tcp_communication: TcpCommunicationConfig, pub data_logger: DataLoggerConfig, pub atlas_scientific: AtlasScientificConfig, pub sensor_manager: SensorManagerConfig, pub gpio_handler: GpioHandlerConfig, pub dht: DhtConfig, pub refill: RefillConfig, pub tank_level_switch: TankLevelSwitchConfig, pub heating: HeatingConfig, pub ventilation: VentilationConfig, pub monitors: MonitorsConfig, pub balling: BallingConfig, pub feed: FeedConfig, pub relay_manager: RelayManagerConfig, pub controllino_relay: ActuateControllinoConfig, pub schedule_check: ScheduleCheckConfig, pub messaging: MessagingConfig, pub publish_pid: PublishPidConfig, pub watchdog: WatchdogConfig, pub ds18b20: Ds18b20Config, pub memory: MemoryConfig, pub logger: LoggerConfig,
}
Expand description

Top level struct to hold the configuration data read from .toml file. It does not contain any implementation.

Fields§

§sql_interface: SqlInterfaceConfig

configuration of the SQL database interface

§tcp_communication: TcpCommunicationConfig

configuration of the TCP connection (e.g., for simulator)

§data_logger: DataLoggerConfig

configuration of the data logger

§atlas_scientific: AtlasScientificConfig

configuration for AtlasScientific

§sensor_manager: SensorManagerConfig

configuration for Ambient

§gpio_handler: GpioHandlerConfig

configuration GPIO handler

§dht: DhtConfig

configuration of the DHT driver

§refill: RefillConfig

configuration of the fresh water refill control

§tank_level_switch: TankLevelSwitchConfig

configuration of the tank level switch calculation

§heating: HeatingConfig

configuration of the heating control

§ventilation: VentilationConfig

configuration of the ventilation control

§monitors: MonitorsConfig

configuration of the monitors

§balling: BallingConfig

configuration of the Balling dosing control

§feed: FeedConfig

configuration of the feed control

§relay_manager: RelayManagerConfig

configuration of the relay manager

§controllino_relay: ActuateControllinoConfig

configuration of the Controllino relays

§schedule_check: ScheduleCheckConfig

configuration for schedule check

§messaging: MessagingConfig

configuration of messaging (IPC)

§publish_pid: PublishPidConfig

configuration of PID publication

§watchdog: WatchdogConfig

configuration of Watchdog communication

§ds18b20: Ds18b20Config

configuration of DS18B20 temperature sensor communication

§memory: MemoryConfig

check of memory configuration

§logger: LoggerConfig

configuration of the general log file

Trait Implementations§

Source§

impl<'de> Deserialize<'de> for ConfigData

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T