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,
pub land: UserLandConfig,
}Fields§
§principal: Option<UserPrincipalConfig>§agent: UserAgentConfig§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<UserConfig, Error>
pub fn load_default() -> Result<UserConfig, Error>
pub fn save_default(&self) -> Result<PathBuf, Error>
pub fn save(&self, path: &Path) -> Result<(), Error>
pub fn set_principal( &mut self, name: impl Into<String>, email: impl Into<String>, )
pub fn remote_token(&self) -> Result<Option<AuthToken>, Error>
pub fn heddle_client_config( &self, token_override: Option<AuthToken>, ) -> Result<ClientConfig, Error>
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<UserConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UserConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for UserConfig
impl Serialize for UserConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request