Struct cargo::sources::git::GitDatabase
source · pub struct GitDatabase {
remote: GitRemote,
path: PathBuf,
repo: Repository,
}
Expand description
GitDatabase
is a local clone of a remote repository’s database. Multiple
GitCheckouts
can be cloned from this GitDatabase
.
Fields§
§remote: GitRemote
§path: PathBuf
§repo: Repository
Implementations§
source§impl GitDatabase
impl GitDatabase
pub fn copy_to( &self, rev: Oid, dest: &Path, cargo_config: &Config, parent_remote_url: &Url ) -> CargoResult<GitCheckout<'_>>
pub fn to_short_id(&self, revision: Oid) -> CargoResult<GitShortID>
pub fn contains(&self, oid: Oid) -> bool
pub fn resolve(&self, r: &GitReference) -> CargoResult<Oid>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for GitDatabase
impl Send for GitDatabase
impl !Sync for GitDatabase
impl Unpin for GitDatabase
impl UnwindSafe for GitDatabase
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 120 bytes