pub enum NotificationCategoryAction {
Action {
identifier: String,
title: String,
},
TextInputAction {
identifier: String,
title: String,
input_button_title: String,
input_placeholder: String,
},
}Expand description
An action to display in a notifications.
Variants§
Action
Action button in a notification
§Platform specific
- macOS: https://developer.apple.com/documentation/usernotifications/unnotificationaction?language=objc
- Linux: not implemented yet (https://github.com/Simon-Laux/user-notify/issues/1)
- Windows: not implemented yet (https://github.com/Simon-Laux/user-notify/issues/2)
TextInputAction
Text input field in a notification.
Example Usage: Can be used to reply to notifications of a messenger.
§Platform specific
- macOS: https://developer.apple.com/documentation/usernotifications/untextinputnotificationaction
- Linux: not supported
- Windows: not implemented yet (https://github.com/Simon-Laux/user-notify/issues/2)
Trait Implementations§
Source§impl Clone for NotificationCategoryAction
impl Clone for NotificationCategoryAction
Source§fn clone(&self) -> NotificationCategoryAction
fn clone(&self) -> NotificationCategoryAction
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 moreAuto Trait Implementations§
impl Freeze for NotificationCategoryAction
impl RefUnwindSafe for NotificationCategoryAction
impl Send for NotificationCategoryAction
impl Sync for NotificationCategoryAction
impl Unpin for NotificationCategoryAction
impl UnwindSafe for NotificationCategoryAction
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more