pub struct NotificationAction {
pub id: String,
pub label: String,
/* private fields */
}Expand description
A button on a notification, or a field to reply in.
Fields§
§id: StringThe app’s own name for it, which a click names.
label: StringImplementations§
Source§impl NotificationAction
impl NotificationAction
Sourcepub fn reply_placeholder(&self) -> Option<&str>
pub fn reply_placeholder(&self) -> Option<&str>
The placeholder of the reply field the action asks for; None for a button.
Trait Implementations§
Source§impl Clone for NotificationAction
impl Clone for NotificationAction
Source§impl Debug for NotificationAction
impl Debug for NotificationAction
impl Eq for NotificationAction
Source§impl PartialEq for NotificationAction
impl PartialEq for NotificationAction
impl StructuralPartialEq for NotificationAction
Auto Trait Implementations§
impl Freeze for NotificationAction
impl RefUnwindSafe for NotificationAction
impl Send for NotificationAction
impl Sync for NotificationAction
impl Unpin for NotificationAction
impl UnsafeUnpin for NotificationAction
impl UnwindSafe for NotificationAction
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.