pub struct ShowAliasResult {
pub shell: Shell,
pub alias_block: String,
pub alias_block_lines: Vec<String>,
pub rc_path_display: String,
pub already_installed: bool,
}Expand description
Result of dodot git-show-alias — the alias body the user can
paste, plus the rc file we’d write it to (so the rendered output
can show “add this to ~/.zshrc”).
Fields§
§shell: Shell§alias_block: String§alias_block_lines: Vec<String>alias_block split by line, so the template can iterate
directly without calling .split (which minijinja doesn’t
expose). Same trick git-filters uses for the same reason.
rc_path_display: String§already_installed: boolTrue iff the rc file currently contains our managed block. Drives the rendered output: “you’ve already installed this” vs “add this to your rc file”.
Trait Implementations§
Source§impl Clone for ShowAliasResult
impl Clone for ShowAliasResult
Source§fn clone(&self) -> ShowAliasResult
fn clone(&self) -> ShowAliasResult
Returns a duplicate 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 ShowAliasResult
impl Debug for ShowAliasResult
Auto Trait Implementations§
impl Freeze for ShowAliasResult
impl RefUnwindSafe for ShowAliasResult
impl Send for ShowAliasResult
impl Sync for ShowAliasResult
impl Unpin for ShowAliasResult
impl UnsafeUnpin for ShowAliasResult
impl UnwindSafe for ShowAliasResult
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