pub struct ParsedRepository {
pub owner: String,
pub repo: String,
pub branch_or_commit: Option<String>,
pub is_commit: bool,
pub project_name: String,
pub host: Option<String>,
}Expand description
Parsed repository information from a URL
Fields§
§owner: StringRepository owner/organization
repo: StringRepository name
branch_or_commit: Option<String>Branch name or commit hash (if specified)
is_commit: boolWhether branch_or_commit is a commit hash
project_name: StringGenerated project name for display
host: Option<String>Host name (e.g., “github.com”)
Implementations§
Source§impl ParsedRepository
impl ParsedRepository
Trait Implementations§
Source§impl Clone for ParsedRepository
impl Clone for ParsedRepository
Source§fn clone(&self) -> ParsedRepository
fn clone(&self) -> ParsedRepository
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ParsedRepository
impl RefUnwindSafe for ParsedRepository
impl Send for ParsedRepository
impl Sync for ParsedRepository
impl Unpin for ParsedRepository
impl UnsafeUnpin for ParsedRepository
impl UnwindSafe for ParsedRepository
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