pub enum AppAction {
Show 14 variants
SetUser(Option<User>),
SetSession(Option<UserSession>),
SetLayout(UILayout),
SetTheme(Theme),
SetLoading(bool),
SetError(Option<String>),
AddNotification(Notification),
RemoveNotification(Uuid),
MarkNotificationRead(Uuid),
ClearNotifications,
ToggleSidebar,
SetSidebarCollapsed(bool),
ToggleMobileMenu,
SetMobileMenuOpen(bool),
}
Variants§
SetUser(Option<User>)
SetSession(Option<UserSession>)
SetLayout(UILayout)
SetTheme(Theme)
SetLoading(bool)
SetError(Option<String>)
AddNotification(Notification)
RemoveNotification(Uuid)
MarkNotificationRead(Uuid)
ClearNotifications
ToggleSidebar
SetSidebarCollapsed(bool)
ToggleMobileMenu
SetMobileMenuOpen(bool)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppAction
impl RefUnwindSafe for AppAction
impl Send for AppAction
impl Sync for AppAction
impl Unpin for AppAction
impl UnwindSafe for AppAction
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,
§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.