pub struct UserConfig {
pub principal: Option<UserPrincipalConfig>,
pub agent: UserAgentConfig,
pub output: UserOutputConfig,
pub display: UserDisplayConfig,
pub worktree: UserWorktreeConfig,
pub logging: UserLoggingConfig,
pub remote: UserRemoteConfig,
pub harness: UserHarnessConfig,
}Fields§
§principal: Option<UserPrincipalConfig>§agent: UserAgentConfig§output: UserOutputConfig§display: UserDisplayConfig§worktree: UserWorktreeConfig§logging: UserLoggingConfig§remote: UserRemoteConfig§harness: UserHarnessConfigImplementations§
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 save(&self, path: &Path) -> Result<()>
pub fn set_principal( &mut self, name: impl Into<String>, email: impl Into<String>, )
pub fn remote_token(&self) -> Option<AuthToken>
pub fn heddle_client_config( &self, token_override: Option<AuthToken>, ) -> ClientConfig
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
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 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