pub struct NotifyOpts {
pub level: ToastLevel,
pub sound: bool,
pub source: Option<String>,
}Expand description
Options for notify. All fields are optional-ish — see
individual field docs.
Fields§
§level: ToastLevel§sound: boolRing the terminal bell alongside the OS notification.
Opt-in (default false).
source: Option<String>Source integration id — determines rate-limit + policy
lookup. None bypasses both (always fires).
Trait Implementations§
Source§impl Clone for NotifyOpts
impl Clone for NotifyOpts
Source§fn clone(&self) -> NotifyOpts
fn clone(&self) -> NotifyOpts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NotifyOpts
impl Debug for NotifyOpts
Source§impl Default for NotifyOpts
impl Default for NotifyOpts
Source§fn default() -> NotifyOpts
fn default() -> NotifyOpts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NotifyOpts
impl RefUnwindSafe for NotifyOpts
impl Send for NotifyOpts
impl Sync for NotifyOpts
impl Unpin for NotifyOpts
impl UnsafeUnpin for NotifyOpts
impl UnwindSafe for NotifyOpts
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