pub struct UserConfig {
pub repo: RepoConfig,
pub agent: AgentConfig,
pub shell: ShellConfig,
}Expand description
Top-level user configuration loaded from $VEX_HOME/config.yaml.
All fields are optional; missing fields use defaults. If the file does
not exist no error is shown and defaults are used throughout.
Fields§
§repo: RepoConfig§agent: AgentConfig§shell: ShellConfigImplementations§
Source§impl UserConfig
impl UserConfig
pub fn load(vex_home: &Path) -> Self
pub fn agent_command(&self) -> &str
pub fn register_hooks(&self) -> &[Hook]
Sourcepub fn shell_binary(&self) -> String
pub fn shell_binary(&self) -> String
Shell binary to use for PTY shell sessions. Priority: config → $SHELL env var → /bin/bash.
Trait Implementations§
Source§impl Debug for UserConfig
impl Debug for UserConfig
Source§impl Default for UserConfig
impl Default for UserConfig
Source§fn default() -> UserConfig
fn default() -> UserConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserConfig
impl<'de> Deserialize<'de> for UserConfig
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 UserConfig
impl RefUnwindSafe for UserConfig
impl Send for UserConfig
impl Sync for UserConfig
impl Unpin for UserConfig
impl UnsafeUnpin for UserConfig
impl UnwindSafe for UserConfig
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