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_repo(&self, _repo_path: &Path) -> Result<RepoSettings, ConfigError>
pub fn get_rng(&self) -> Arc<JJRng>
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 oplog_relative_timestamps(&self) -> bool
pub fn config(&self) -> &Config
pub fn git_settings(&self) -> GitSettings
pub fn graph_style(&self) -> String
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for UserSettings
impl Send for UserSettings
impl Sync for UserSettings
impl Unpin for UserSettings
impl !UnwindSafe for UserSettings
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