pub struct SettingsUpdate {Show 28 fields
pub default_download_path: Option<Option<String>>,
pub default_context_size: Option<Option<u64>>,
pub proxy_port: Option<Option<u16>>,
pub llama_base_port: Option<Option<u16>>,
pub max_download_queue_size: Option<Option<u32>>,
pub show_memory_fit_indicators: Option<Option<bool>>,
pub max_tool_iterations: Option<Option<u32>>,
pub max_stagnation_steps: Option<Option<u32>>,
pub default_model_id: Option<Option<i64>>,
pub inference_defaults: Option<Option<InferenceConfig>>,
pub inference_profiles: Option<Option<Vec<InferenceProfile>>>,
pub setup_completed: Option<Option<bool>>,
pub title_generation_prompt: Option<Option<String>>,
pub bind_host: Option<Option<String>>,
pub share_lan: Option<Option<bool>>,
pub proxy_api_key: Option<Option<String>>,
pub trust_client_sampling: Option<Option<bool>>,
pub loop_guard_mode: Option<Option<LoopGuardMode>>,
pub proxy_loop_detection: Option<Option<bool>>,
pub tool_call_repair: Option<Option<bool>>,
pub agentic_sampling: Option<Option<bool>>,
pub proxy_autostart: Option<Option<bool>>,
pub close_to_tray: Option<Option<bool>>,
pub start_at_login: Option<Option<bool>>,
pub remote_pairing: Option<Option<RemotePairing>>,
pub remote_enabled: Option<Option<bool>>,
pub remote_serve: Option<Option<RemoteServe>>,
pub remote_devices: Option<Option<Vec<Device>>>,
}Expand description
Partial settings update.
Each field is Option<Option<T>>:
None= don’t change this fieldSome(None)= set field to None/nullSome(Some(value))= set field to value
Fields§
§default_download_path: Option<Option<String>>§default_context_size: Option<Option<u64>>§proxy_port: Option<Option<u16>>§llama_base_port: Option<Option<u16>>§max_download_queue_size: Option<Option<u32>>§show_memory_fit_indicators: Option<Option<bool>>§max_tool_iterations: Option<Option<u32>>§max_stagnation_steps: Option<Option<u32>>§default_model_id: Option<Option<i64>>§inference_defaults: Option<Option<InferenceConfig>>§inference_profiles: Option<Option<Vec<InferenceProfile>>>§setup_completed: Option<Option<bool>>§title_generation_prompt: Option<Option<String>>§bind_host: Option<Option<String>>§proxy_api_key: Option<Option<String>>§trust_client_sampling: Option<Option<bool>>§loop_guard_mode: Option<Option<LoopGuardMode>>See Settings::loop_guard_mode.
Writing it to a value clears Self::proxy_loop_detection, and
the other way round; Some(None) — the explicit clear — clears only
itself, because “forget this field” is not “forget both”.
proxy_loop_detection: Option<Option<bool>>Deprecated; see
Settings::proxy_loop_detection.
tool_call_repair: Option<Option<bool>>§agentic_sampling: Option<Option<bool>>§proxy_autostart: Option<Option<bool>>§close_to_tray: Option<Option<bool>>§start_at_login: Option<Option<bool>>§remote_pairing: Option<Option<RemotePairing>>See Settings::remote_pairing. Written whole or not at all: the
two halves have no separate update, which is what keeps them bound.
remote_enabled: Option<Option<bool>>§remote_serve: Option<Option<RemoteServe>>See Settings::remote_serve. Written whole, like the pairing.
remote_devices: Option<Option<Vec<Device>>>See Settings::remote_devices. Written whole.
Trait Implementations§
Source§impl Clone for SettingsUpdate
impl Clone for SettingsUpdate
Source§fn clone(&self) -> SettingsUpdate
fn clone(&self) -> SettingsUpdate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SettingsUpdate
impl Debug for SettingsUpdate
Source§impl Default for SettingsUpdate
impl Default for SettingsUpdate
Source§fn default() -> SettingsUpdate
fn default() -> SettingsUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SettingsUpdate
impl<'de> Deserialize<'de> for SettingsUpdate
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 SettingsUpdate
impl RefUnwindSafe for SettingsUpdate
impl Send for SettingsUpdate
impl Sync for SettingsUpdate
impl Unpin for SettingsUpdate
impl UnsafeUnpin for SettingsUpdate
impl UnwindSafe for SettingsUpdate
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