pub struct NotificationConfig {
pub enabled: Option<bool>,
pub notify_on_complete: Option<bool>,
pub notify_on_fail: Option<bool>,
pub notify_on_loop_complete: Option<bool>,
pub suppress_when_active: Option<bool>,
pub sound_enabled: Option<bool>,
pub sound_path: Option<String>,
pub timeout_ms: Option<u32>,
}Expand description
Desktop notification configuration.
Fields§
§enabled: Option<bool>Enable desktop notifications on task completion (default: true).
This is the legacy/compatibility field; prefer notify_on_complete.
notify_on_complete: Option<bool>Enable desktop notifications on task completion (default: true).
notify_on_fail: Option<bool>Enable desktop notifications on task failure (default: true).
notify_on_loop_complete: Option<bool>Enable desktop notifications when loop mode completes (default: true).
suppress_when_active: Option<bool>Suppress notifications when a foreground UI client is active (default: true).
sound_enabled: Option<bool>Enable sound alerts with notifications (default: false).
sound_path: Option<String>Custom sound file path (platform-specific format). If not set, uses platform default sounds.
timeout_ms: Option<u32>Notification timeout in milliseconds (default: 8000).
Implementations§
Source§impl NotificationConfig
impl NotificationConfig
pub fn merge_from(&mut self, other: Self)
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
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
Source§impl JsonSchema for NotificationConfig
impl JsonSchema for NotificationConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto 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