pub struct SidebarExpandState {
pub ticket_open: bool,
pub users_open: bool,
}Expand description
Represents the expansion state of collapsible menus within the sidebar.
This struct is used to persist the open/closed state of sidebar submenus,
improving user experience by remembering their last interaction.
The state is stored in and retrieved from LocalStorage.
§Fields
ticket_open: A boolean indicating if the “Tickets” submenu is expanded (true) or collapsed (false).users_open: A boolean indicating if the “Users” submenu is expanded (true) or collapsed (false).
Fields§
§ticket_open: bool§users_open: boolTrait Implementations§
Source§impl Clone for SidebarExpandState
impl Clone for SidebarExpandState
Source§fn clone(&self) -> SidebarExpandState
fn clone(&self) -> SidebarExpandState
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 moreSource§impl Default for SidebarExpandState
impl Default for SidebarExpandState
Source§impl<'de> Deserialize<'de> for SidebarExpandState
impl<'de> Deserialize<'de> for SidebarExpandState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SidebarExpandState
impl PartialEq for SidebarExpandState
Source§impl Serialize for SidebarExpandState
impl Serialize for SidebarExpandState
impl StructuralPartialEq for SidebarExpandState
Auto Trait Implementations§
impl Freeze for SidebarExpandState
impl RefUnwindSafe for SidebarExpandState
impl Send for SidebarExpandState
impl Sync for SidebarExpandState
impl Unpin for SidebarExpandState
impl UnwindSafe for SidebarExpandState
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> FromQuery for Twhere
T: DeserializeOwned,
impl<T> FromQuery for Twhere
T: DeserializeOwned,
§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> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.