Struct cargo::sources::git::GitRemote
[−]
[src]
pub struct GitRemote { // some fields omitted }
GitRemote represents a remote repository. It gets cloned into a local GitDatabase.
Methods
impl GitRemote
[src]
fn new(url: &Url) -> GitRemote
fn url(&self) -> &Url
fn rev_for(&self, path: &Path, reference: &GitReference) -> CargoResult<GitRevision>
fn checkout(&self, into: &Path, cargo_config: &Config) -> CargoResult<GitDatabase>
fn db_at(&self, db_path: &Path) -> CargoResult<GitDatabase>
Trait Implementations
impl Encodable for GitRemote
[src]
Derived Implementations
impl Debug for GitRemote
[src]
impl Clone for GitRemote
[src]
fn clone(&self) -> GitRemote
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more