pub struct RepoEntry {
pub name: String,
pub org: String,
pub path: PathBuf,
pub remote_url: Option<String>,
}Expand description
A discovered git repository in the registry.
Fields§
§name: StringShort display name (basename, or org/repo if ambiguous)
org: StringOrganization/owner directory name (may be empty for flat layouts, or contain path separators for deep layouts like “github.com/org”)
path: PathBufAbsolute path to the repository root
remote_url: Option<String>Remote URL for origin (if available)
Implementations§
Source§impl RepoEntry
impl RepoEntry
Sourcepub fn display_name(&self) -> String
pub fn display_name(&self) -> String
Display name: bare name for flat layout, org/name for grouped layout.
Sourcepub fn matches_name(&self, query: &str) -> bool
pub fn matches_name(&self, query: &str) -> bool
Check if this entry matches a query string (bare name or org-qualified name).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RepoEntry
impl RefUnwindSafe for RepoEntry
impl Send for RepoEntry
impl Sync for RepoEntry
impl Unpin for RepoEntry
impl UnsafeUnpin for RepoEntry
impl UnwindSafe for RepoEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more