pub struct Config {Show 17 fields
pub schema: Option<String>,
pub agent: Option<Agent>,
pub autoshare: Option<bool>,
pub autoupdate: Option<bool>,
pub disabled_providers: Option<Vec<String>>,
pub experimental: Option<Experimental>,
pub instructions: Option<Vec<String>>,
pub keybinds: Option<KeybindsConfig>,
pub layout: Option<Layout>,
pub mcp: Option<HashMap<String, McpConfig>>,
pub mode: Option<ModeMap>,
pub model: Option<String>,
pub provider: Option<HashMap<String, ProviderConfig>>,
pub share: Option<ShareMode>,
pub small_model: Option<String>,
pub theme: Option<String>,
pub username: Option<String>,
}Expand description
Top-level configuration returned by GET /config.
All fields are optional to tolerate partial / minimal server responses.
Fields§
§schema: Option<String>JSON Schema reference.
agent: Option<Agent>Agent configuration map.
Whether to auto-share sessions (deprecated).
autoupdate: Option<bool>Whether to auto-update the application.
disabled_providers: Option<Vec<String>>List of disabled provider identifiers.
experimental: Option<Experimental>Experimental features.
instructions: Option<Vec<String>>Custom instructions / system prompts.
keybinds: Option<KeybindsConfig>Keybinding configuration.
layout: Option<Layout>UI layout (deprecated).
mcp: Option<HashMap<String, McpConfig>>MCP server configurations, keyed by server name.
mode: Option<ModeMap>Mode configurations.
model: Option<String>Default model identifier.
provider: Option<HashMap<String, ProviderConfig>>Provider configurations.
Session sharing mode.
small_model: Option<String>Default small-model identifier.
theme: Option<String>UI theme name.
username: Option<String>Display username.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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