pub struct SettingsPatch {Show 15 fields
pub allow_cloud_ai: Option<bool>,
pub allow_local_ai: Option<bool>,
pub local_ai_base_url: Option<String>,
pub local_ai_models: Option<Vec<String>>,
pub llama_server_binary: Option<String>,
pub llama_server_model: Option<String>,
pub llama_params: Option<HashMap<String, LlamaParams>>,
pub providers_enabled: Option<HashMap<String, bool>>,
pub theme: Option<String>,
pub confirm_destructive: Option<bool>,
pub scheduler_enabled: Option<bool>,
pub scheduler_poll_secs: Option<u64>,
pub max_agentic_iterations: Option<u32>,
pub max_agentic_seconds: Option<u32>,
pub max_agentic_tokens: Option<u32>,
}Fields§
§allow_cloud_ai: Option<bool>§allow_local_ai: Option<bool>§local_ai_base_url: Option<String>§local_ai_models: Option<Vec<String>>§llama_server_binary: Option<String>§llama_server_model: Option<String>§llama_params: Option<HashMap<String, LlamaParams>>§providers_enabled: Option<HashMap<String, bool>>§theme: Option<String>§confirm_destructive: Option<bool>§scheduler_enabled: Option<bool>§scheduler_poll_secs: Option<u64>§max_agentic_iterations: Option<u32>§max_agentic_seconds: Option<u32>§max_agentic_tokens: Option<u32>Trait Implementations§
Source§impl Clone for SettingsPatch
impl Clone for SettingsPatch
Source§fn clone(&self) -> SettingsPatch
fn clone(&self) -> SettingsPatch
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 SettingsPatch
impl Debug for SettingsPatch
Source§impl Default for SettingsPatch
impl Default for SettingsPatch
Source§fn default() -> SettingsPatch
fn default() -> SettingsPatch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SettingsPatch
impl<'de> Deserialize<'de> for SettingsPatch
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
Auto Trait Implementations§
impl Freeze for SettingsPatch
impl RefUnwindSafe for SettingsPatch
impl Send for SettingsPatch
impl Sync for SettingsPatch
impl Unpin for SettingsPatch
impl UnsafeUnpin for SettingsPatch
impl UnwindSafe for SettingsPatch
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