Struct ashpd::desktop::notification::Notification
source · pub struct Notification { /* private fields */ }
Expand description
A notification
Implementations§
source§impl Notification
impl Notification
sourcepub fn priority(self, priority: impl Into<Option<Priority>>) -> Self
pub fn priority(self, priority: impl Into<Option<Priority>>) -> Self
Sets the notification priority.
sourcepub fn default_action<'a>(
self,
default_action: impl Into<Option<&'a str>>,
) -> Self
pub fn default_action<'a>( self, default_action: impl Into<Option<&'a str>>, ) -> Self
Sets the default action when the user clicks on the notification.
sourcepub fn default_action_target<'a, T: Into<Value<'a>>>(
self,
default_action_target: impl Into<Option<T>>,
) -> Self
pub fn default_action_target<'a, T: Into<Value<'a>>>( self, default_action_target: impl Into<Option<T>>, ) -> Self
Sets a value to be sent in the action_invoked
signal.
Adds a new button to the notification.
Trait Implementations§
source§impl Debug for Notification
impl Debug for Notification
source§impl Serialize for Notification
impl Serialize for Notification
Auto Trait Implementations§
impl Freeze for Notification
impl RefUnwindSafe for Notification
impl Send for Notification
impl Sync for Notification
impl Unpin for Notification
impl UnwindSafe for Notification
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
source§impl<T> DynamicType for T
impl<T> DynamicType for T
source§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more