pub struct Repository {
pub source: PathBuf,
pub common_dir: PathBuf,
pub remote: Option<String>,
pub identity: String,
}Expand description
Identity, location and selected remote of a backing Git repository.
Fields§
§source: PathBufPath to the backing repository.
common_dir: PathBufGit administration directory shared by the repository’s worktrees.
remote: Option<String>Remote selected for branch resolution or fetch.
identity: StringStable identifier used to match repository observations.
Implementations§
Source§impl Repository
impl Repository
Source§impl Repository
impl Repository
Source§impl Repository
impl Repository
Trait Implementations§
Source§impl Clone for Repository
impl Clone for Repository
Source§impl Debug for Repository
impl Debug for Repository
Source§impl From<&Repository> for Repository
impl From<&Repository> for Repository
Source§fn from(repository: &Repository) -> Self
fn from(repository: &Repository) -> Self
Converts to this type from the input type.
Source§impl From<Repository> for Repository
impl From<Repository> for Repository
Source§fn from(repository: Repository) -> Self
fn from(repository: Repository) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for Repository
impl Freeze for Repository
impl Move for Repository
impl RefUnwindSafe for Repository
impl Send for Repository
impl Sync for Repository
impl Unpin for Repository
impl UnsafeUnpin for Repository
impl UnwindSafe for Repository
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