pub struct NotificationCategory {
pub identifier: String,
pub actions: Vec<NotificationCategoryAction>,
}Expand description
Notification Categories are used to define actions for notifications that have this category set.
Think of it like a template for notications. To store data for a notification, use NotificationBuilder::set_user_info and retrieve it via NotificationHandle::get_user_info or NotificationResponse::user_info.
Fields§
§identifier: StringId of the category by which it is referenced on notifications NotificationBuilder::set_category_id
actions: Vec<NotificationCategoryAction>The actions to display when the system delivers notifications of this type.
Trait Implementations§
Source§impl Clone for NotificationCategory
impl Clone for NotificationCategory
Source§fn clone(&self) -> NotificationCategory
fn clone(&self) -> NotificationCategory
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 NotificationCategory
impl RefUnwindSafe for NotificationCategory
impl Send for NotificationCategory
impl Sync for NotificationCategory
impl Unpin for NotificationCategory
impl UnwindSafe for NotificationCategory
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