pub struct ToastAction {
pub label: Arc<str>,
pub command: CommandId,
pub dismiss_toast: bool,
}Fields§
§label: Arc<str>§command: CommandId§dismiss_toast: boolWhen false, activating the action does not dismiss the toast.
This mirrors Sonner’s event.preventDefault() escape hatch for action clicks.
Implementations§
Trait Implementations§
Source§impl Clone for ToastAction
impl Clone for ToastAction
Source§fn clone(&self) -> ToastAction
fn clone(&self) -> ToastAction
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 ToastAction
impl RefUnwindSafe for ToastAction
impl Send for ToastAction
impl Sync for ToastAction
impl Unpin for ToastAction
impl UnsafeUnpin for ToastAction
impl UnwindSafe for ToastAction
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