pub struct SettingsStore { /* private fields */ }Implementations§
Source§impl SettingsStore
impl SettingsStore
pub fn open(path: PathBuf) -> Self
pub fn in_memory() -> Self
pub fn snapshot(&self) -> Settings
pub fn allow_cloud_ai(&self) -> bool
pub fn allow_local_ai(&self) -> bool
pub fn local_ai_base_url(&self) -> Option<String>
pub fn local_ai_models(&self) -> Vec<String>
pub fn llama_server_binary(&self) -> Option<String>
pub fn llama_server_model(&self) -> Option<String>
pub fn provider_enabled(&self, name: &str) -> bool
pub fn theme(&self) -> String
pub fn confirm_destructive(&self) -> bool
pub fn scheduler_enabled(&self) -> bool
pub fn scheduler_poll_secs(&self) -> u64
pub fn max_agentic_iterations(&self) -> u32
Sourcepub fn max_agentic_seconds(&self) -> u32
pub fn max_agentic_seconds(&self) -> u32
Wall-clock ceiling in seconds for one autonomous run; 0 = unlimited.
Clamped to 24h.
Sourcepub fn max_agentic_tokens(&self) -> u32
pub fn max_agentic_tokens(&self) -> u32
Cumulative token ceiling for one autonomous run; 0 = unlimited.
pub fn update(&self, patch: SettingsPatch) -> Result<Settings, SettingsError>
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 moreAuto Trait Implementations§
impl Freeze for SettingsStore
impl !RefUnwindSafe for SettingsStore
impl Send for SettingsStore
impl Sync for SettingsStore
impl Unpin for SettingsStore
impl UnsafeUnpin 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,
§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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more