pub enum UiAction {
Show 21 variants
ToggleSidebar,
SetSidebarOpen(bool),
ToggleSidebarCollapsed,
SetSidebarCollapsed(bool),
AddNotification(Notification),
DismissNotification(String),
ClearNotifications,
OpenModal(ModalType, Option<String>),
CloseModal,
OpenCommandPalette,
CloseCommandPalette,
SetCommandPaletteQuery(String),
SelectCommandPaletteItem(usize),
CommandPaletteUp,
CommandPaletteDown,
ShowLoading(Option<String>),
HideLoading,
SetIsMobile(bool),
SetIsTouchDevice(bool),
SetDarkMode(bool),
SetFocusedElement(Option<String>),
}Expand description
UI store actions
Variants§
ToggleSidebar
SetSidebarOpen(bool)
ToggleSidebarCollapsed
SetSidebarCollapsed(bool)
AddNotification(Notification)
DismissNotification(String)
ClearNotifications
OpenModal(ModalType, Option<String>)
CloseModal
OpenCommandPalette
CloseCommandPalette
SetCommandPaletteQuery(String)
SelectCommandPaletteItem(usize)
CommandPaletteUp
CommandPaletteDown
ShowLoading(Option<String>)
HideLoading
SetIsMobile(bool)
SetIsTouchDevice(bool)
SetDarkMode(bool)
SetFocusedElement(Option<String>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UiAction
impl RefUnwindSafe for UiAction
impl Send for UiAction
impl Sync for UiAction
impl Unpin for UiAction
impl UnwindSafe for UiAction
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> 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> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.