pub struct ScheduleCheckConfig {
pub active: bool,
pub execute: bool,
pub schedule_check_interval: u32,
pub strategy_if_schedule_not_found: bool,
}Expand description
Holds the configuration data for the schedule checker. The configuration is loaded from the .toml configuration file. This struct does not contain any implementation.
Fields§
§active: boolreading from the database only happens when the flag is true
execute: boolindicates if the thread shall be started or not
schedule_check_interval: u32interval for polling the SQL database
strategy_if_schedule_not_found: boolstrategy if entry could not be found in the database:
- true allows actuation
- false inhibits actuation
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ScheduleCheckConfig
impl<'de> Deserialize<'de> for ScheduleCheckConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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§
impl Freeze for ScheduleCheckConfig
impl RefUnwindSafe for ScheduleCheckConfig
impl Send for ScheduleCheckConfig
impl Sync for ScheduleCheckConfig
impl Unpin for ScheduleCheckConfig
impl UnwindSafe for ScheduleCheckConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more