pub struct NotificationAction {
pub label: String,
pub effect: Effect,
}Expand description
Something a notification offers to do about itself.
§5.9.9 specifies buttons; there is no focusable widget here and one
is not wanted — the corner stays a pure signal, and
:notifications is where you act (see notifications-mode). So an
action is a label plus the [lattice_grammar::Effect] <CR>
applies there.
A typed effect rather than an action name: a name has to resolve at fire time and can fail then — silently, on a key the user pressed deliberately. There is nothing here to resolve.
Fields§
§label: StringShown under the notification in the buffer.
effect: EffectTrait Implementations§
Source§impl Clone for NotificationAction
impl Clone for NotificationAction
Source§fn clone(&self) -> NotificationAction
fn clone(&self) -> NotificationAction
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 moreAuto 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