pub struct NotificationConfig {
pub enabled: bool,
pub notify_on_complete: bool,
pub notify_on_fail: bool,
pub notify_on_loop_complete: bool,
pub suppress_when_active: bool,
pub sound_enabled: bool,
pub sound_path: Option<String>,
pub timeout_ms: u32,
}Expand description
Configuration for desktop notifications.
Fields§
§enabled: boolEnable desktop notifications on task completion (legacy field).
notify_on_complete: boolEnable desktop notifications on task completion.
notify_on_fail: boolEnable desktop notifications on task failure.
notify_on_loop_complete: boolEnable desktop notifications when loop mode completes.
suppress_when_active: boolSuppress notifications when a foreground UI client is active.
sound_enabled: boolEnable sound alerts with notifications.
sound_path: Option<String>Custom sound file path (platform-specific format). If not set, uses platform default sounds.
timeout_ms: u32Notification timeout in milliseconds (default: 8000).
Implementations§
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§fn default() -> NotificationConfig
fn default() -> NotificationConfig
Returns the “default value” for a type. 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