pub struct NotificationConfig {
pub enabled: bool,
pub co2_threshold: u16,
pub radon_threshold: u32,
pub cooldown_secs: u64,
}Expand description
Desktop notification settings.
Fields§
§enabled: boolWhether desktop notifications are enabled.
co2_threshold: u16CO2 threshold in ppm (notify when exceeded).
radon_threshold: u32Radon threshold in Bq/m³ (notify when exceeded).
cooldown_secs: u64Minimum interval between notifications per device (in seconds).
Trait Implementations§
Source§impl Clone for NotificationConfig
impl Clone for NotificationConfig
Source§fn clone(&self) -> NotificationConfig
fn clone(&self) -> NotificationConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NotificationConfig
impl Debug for NotificationConfig
Source§impl Default for NotificationConfig
impl Default for NotificationConfig
Source§impl<'de> Deserialize<'de> for NotificationConfigwhere
NotificationConfig: Default,
impl<'de> Deserialize<'de> for NotificationConfigwhere
NotificationConfig: Default,
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 NotificationConfig
impl RefUnwindSafe for NotificationConfig
impl Send for NotificationConfig
impl Sync for NotificationConfig
impl Unpin for NotificationConfig
impl UnsafeUnpin for NotificationConfig
impl UnwindSafe for NotificationConfig
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