pub struct PredictConfig {
pub model: String,
pub effort: String,
pub agent_id: Option<String>,
pub app_allowlist: Vec<String>,
pub debounce_ms: u64,
pub max_chars: usize,
}Expand description
Persisted predictive-typing configuration. camelCase so the desktop
settings tab and the overlay can read/write the same JSON shape.
Fields§
§model: StringGateway-routable model id. Empty → resolved from the agent / env / default.
effort: Stringreasoning_effort passthrough; empty → omitted.
agent_id: Option<String>Optional agent backing predictions. When set, the agent’s bound model wins
over model, and the id is forwarded to the Gateway for per-agent
routing / budgets / audit.
app_allowlist: Vec<String>Per-app allowlist of process names (e.g. notepad.exe, chrome.exe).
Empty = every app allowed (the default). A non-empty list restricts
predictions to exactly those apps (case-insensitive match).
debounce_ms: u64Debounce (ms) the overlay waits after the caret settles before requesting.
max_chars: usizeMax characters of a returned suggestion.
Implementations§
Trait Implementations§
Source§impl Clone for PredictConfig
impl Clone for PredictConfig
Source§fn clone(&self) -> PredictConfig
fn clone(&self) -> PredictConfig
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 PredictConfig
impl Debug for PredictConfig
Source§impl Default for PredictConfig
impl Default for PredictConfig
Source§impl<'de> Deserialize<'de> for PredictConfig
impl<'de> Deserialize<'de> for PredictConfig
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 PredictConfig
impl PartialEq for PredictConfig
Source§impl Serialize for PredictConfig
impl Serialize for PredictConfig
impl StructuralPartialEq for PredictConfig
Auto Trait Implementations§
impl Freeze for PredictConfig
impl RefUnwindSafe for PredictConfig
impl Send for PredictConfig
impl Sync for PredictConfig
impl Unpin for PredictConfig
impl UnsafeUnpin for PredictConfig
impl UnwindSafe for PredictConfig
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