pub enum NotificationResponse {
None,
ActionButton(String),
CloseButton(String),
Click,
Reply(String),
}Expand description
Response from the Notification
Variants§
None
No interaction has occured
ActionButton(String)
User clicked on an action button with the given name
CloseButton(String)
User clicked on the close button with the given name
Click
User clicked the notification directly
Reply(String)
User submitted text to the input text field
Trait Implementations§
Source§impl Clone for NotificationResponse
impl Clone for NotificationResponse
Source§fn clone(&self) -> NotificationResponse
fn clone(&self) -> NotificationResponse
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 NotificationResponse
impl Debug for NotificationResponse
Source§impl PartialEq for NotificationResponse
impl PartialEq for NotificationResponse
Source§fn eq(&self, other: &NotificationResponse) -> bool
fn eq(&self, other: &NotificationResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NotificationResponse
Auto Trait Implementations§
impl Freeze for NotificationResponse
impl RefUnwindSafe for NotificationResponse
impl Send for NotificationResponse
impl Sync for NotificationResponse
impl Unpin for NotificationResponse
impl UnsafeUnpin for NotificationResponse
impl UnwindSafe for NotificationResponse
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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