pub struct Settings {
pub default_provider: Option<String>,
pub default_model: Option<String>,
pub default_thinking_level: Option<String>,
pub theme: Option<String>,
pub scoped_models: Option<Vec<String>>,
}Expand description
The honored subset of pi’s Settings. Unknown fields are ignored.
Fields§
§default_provider: Option<String>Saved default provider id (v1 honors only "anthropic"; an absent or
anthropic value allows the saved default-model lookup).
default_model: Option<String>Saved default model id. When present and the model is authed,
provider::resolve selects it (pi findInitialModel step 3).
default_thinking_level: Option<String>Saved default thinking level (a level-name string: off/minimal/low/medium/
high/xhigh/max). Parsed by the caller via args::parse_thinking_level.
theme: Option<String>Saved theme name. Surfaced for best-effort TUI theme application.
scoped_models: Option<Vec<String>>/scoped-models: the model ids allowed in the Ctrl+M cycle. Absent /
empty ⇒ every catalog model cycles (the default).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Settings
impl<'de> Deserialize<'de> for Settings
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 Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
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