Struct jujutsu_lib::settings::UserSettings
source · pub struct UserSettings { /* private fields */ }Implementations§
source§impl UserSettings
impl UserSettings
pub fn from_config(config: Config) -> Self
pub fn with_toml_strings(
&self,
toml_strs: &[String]
) -> Result<UserSettings, ConfigError>
pub fn with_repo(&self, repo_path: &Path) -> Result<RepoSettings, ConfigError>
pub fn user_name(&self) -> String
pub fn user_name_placeholder() -> &'static str
pub fn user_email(&self) -> String
pub fn user_email_placeholder() -> &'static str
pub fn operation_timestamp(&self) -> Option<Timestamp>
pub fn operation_hostname(&self) -> String
pub fn operation_username(&self) -> String
pub fn push_branch_prefix(&self) -> String
pub fn default_revset(&self) -> String
pub fn signature(&self) -> Signature
pub fn allow_native_backend(&self) -> bool
pub fn relative_timestamps(&self) -> bool
pub fn config(&self) -> &Config
Trait Implementations§
source§impl Clone for UserSettings
impl Clone for UserSettings
source§fn clone(&self) -> UserSettings
fn clone(&self) -> UserSettings
Returns a copy of the value. Read more
1.0.0 · 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 UserSettings
impl Debug for UserSettings
source§impl Default for UserSettings
impl Default for UserSettings
source§fn default() -> UserSettings
fn default() -> UserSettings
Returns the “default value” for a type. Read more