pub struct SettingsStore {
pub theme: Theme,
pub default_timeout: u32,
pub output_format: OutputFormat,
pub include_metadata: bool,
pub history_retention: u32,
pub onboarding_completed: bool,
pub search: SearchSettings,
pub api: ApiSettings,
pub keyboard_shortcuts: bool,
pub expand_parameters: bool,
pub auto_refresh_interval: u32,
}Expand description
Settings store state
Fields§
§theme: ThemeUI theme
default_timeout: u32Default execution timeout in seconds
output_format: OutputFormatDefault output format
include_metadata: boolInclude metadata in execution output
history_retention: u32History retention count
onboarding_completed: boolWhether onboarding has been completed
search: SearchSettingsSearch pipeline settings
api: ApiSettingsAPI connection settings
keyboard_shortcuts: boolKeyboard shortcuts enabled
expand_parameters: boolShow tool parameters by default
auto_refresh_interval: u32Auto-refresh interval in seconds (0 = disabled)
Implementations§
Source§impl SettingsStore
impl SettingsStore
Sourcepub fn needs_onboarding(&self) -> bool
pub fn needs_onboarding(&self) -> bool
Check if the user needs to go through onboarding
Sourcepub fn effective_theme(&self) -> Theme
pub fn effective_theme(&self) -> Theme
Get the effective theme (resolving system preference)
Trait Implementations§
Source§impl Clone for SettingsStore
impl Clone for SettingsStore
Source§fn clone(&self) -> SettingsStore
fn clone(&self) -> SettingsStore
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 Debug for SettingsStore
impl Debug for SettingsStore
Source§impl Default for SettingsStore
impl Default for SettingsStore
Source§impl<'de> Deserialize<'de> for SettingsStore
impl<'de> Deserialize<'de> for SettingsStore
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 SettingsStore
impl PartialEq for SettingsStore
Source§impl Reducer<SettingsStore> for SettingsAction
impl Reducer<SettingsStore> for SettingsAction
Source§fn apply(self, store: Rc<SettingsStore>) -> Rc<SettingsStore>
fn apply(self, store: Rc<SettingsStore>) -> Rc<SettingsStore>
Mutate state.
Source§impl Serialize for SettingsStore
impl Serialize for SettingsStore
Source§impl Store for SettingsStore
impl Store for SettingsStore
impl StructuralPartialEq for SettingsStore
Auto Trait Implementations§
impl Freeze for SettingsStore
impl RefUnwindSafe for SettingsStore
impl Send for SettingsStore
impl Sync for SettingsStore
impl Unpin for SettingsStore
impl UnwindSafe for SettingsStore
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,
Source§impl<T> FromQuery for Twhere
T: DeserializeOwned,
impl<T> FromQuery for Twhere
T: DeserializeOwned,
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.