pub struct UserConfig {
pub principal: Option<UserPrincipalConfig>,
pub agent: UserAgentConfig,
pub capture: UserCaptureConfig,
pub output: UserOutputConfig,
pub display: UserDisplayConfig,
pub worktree: UserWorktreeConfig,
pub logging: UserLoggingConfig,
pub remote: UserRemoteConfig,
pub harness: UserHarnessConfig,
pub land: UserLandConfig,
}Fields§
§principal: Option<UserPrincipalConfig>§agent: UserAgentConfig§capture: UserCaptureConfig§output: UserOutputConfig§display: UserDisplayConfig§worktree: UserWorktreeConfig§logging: UserLoggingConfig§remote: UserRemoteConfig§harness: UserHarnessConfig§land: UserLandConfigImplementations§
Source§impl UserConfig
impl UserConfig
pub fn default_path() -> Option<PathBuf>
pub fn load(path: &Path) -> Result<Self>
pub fn load_default() -> Result<Self>
pub fn save_default(&self) -> Result<PathBuf>
pub fn stage_default(&self) -> Result<StagedUserConfig>
pub fn save(&self, path: &Path) -> Result<()>
pub fn stage(&self, path: &Path) -> Result<StagedUserConfig>
pub fn set_principal( &mut self, name: impl Into<String>, email: impl Into<String>, )
pub fn command_auto_capture_enabled(&self) -> Result<bool>
Sourcepub fn set_remote_tls_repo_start(path: PathBuf)
pub fn set_remote_tls_repo_start(path: PathBuf)
Record the CLI-selected repository start used for TLS CA discovery.
Startup sets this from -C / --repo (or the process cwd) before
commands open a repository, so later hosted config assembly honors
the same checkout.
Sourcepub fn remote_tls_ca_certificate_pem(
&self,
repo_start: Option<&Path>,
) -> Result<Option<String>>
pub fn remote_tls_ca_certificate_pem( &self, repo_start: Option<&Path>, ) -> Result<Option<String>>
Resolve the shared custom CA bundle used by hosted and Git transports.
repo_start is the CLI-selected repository path (-C / --repo).
When omitted, uses the start recorded at process startup, then the
process cwd.
Precedence, highest first: HEDDLE_REMOTE_TLS_CA_CERT, user-config
[remote] tls_ca_certificate_path, then the same key in repository
.heddle/config.toml discovered from that start path.
Sourcepub fn hosted_runtime_config(
&self,
token: Option<AuthToken>,
) -> Result<ClientConfig>
pub fn hosted_runtime_config( &self, token: Option<AuthToken>, ) -> Result<ClientConfig>
Build the validated TLS/auth client config. The bearer token is supplied
by the caller (resolved through the single HEDDLE_CREDENTIAL → keystore
precedence in the client crate); this method no longer reads any token
from env or user config.
pub fn worktree_status_options( &self, repo_config: Option<&RepoConfig>, ) -> WorktreeStatusOptions
Trait Implementations§
Source§impl Clone for UserConfig
impl Clone for UserConfig
Source§fn clone(&self) -> UserConfig
fn clone(&self) -> UserConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more