pub struct PrettyEntry {
pub path: PathBuf,
pub display_name: String,
pub base_name: String,
pub worktree_of: Option<String>,
/* private fields */
}Expand description
A discovered project with its computed pretty name.
Fields§
§path: PathBufAbsolute path to the project or worktree root.
display_name: StringDisplay name with disambiguation suffix (e.g. "myapp [projects]").
base_name: StringShort name before disambiguation (e.g. “feature” for a worktree, “myapp” for a repo)
worktree_of: Option<String>If this is a worktree, the name of the main repo it belongs to
Trait Implementations§
Source§impl Clone for PrettyEntry
impl Clone for PrettyEntry
Source§fn clone(&self) -> PrettyEntry
fn clone(&self) -> PrettyEntry
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 moreAuto Trait Implementations§
impl Freeze for PrettyEntry
impl RefUnwindSafe for PrettyEntry
impl Send for PrettyEntry
impl Sync for PrettyEntry
impl Unpin for PrettyEntry
impl UnsafeUnpin for PrettyEntry
impl UnwindSafe for PrettyEntry
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