Struct cargo::sources::git::GitRemote
[−]
[src]
pub struct GitRemote { /* 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>
&self,
path: &Path,
reference: &GitReference
) -> CargoResult<GitRevision>
fn checkout(
&self,
into: &Path,
cargo_config: &Config
) -> CargoResult<GitDatabase>
&self,
into: &Path,
cargo_config: &Config
) -> CargoResult<GitDatabase>
fn db_at(&self, db_path: &Path) -> CargoResult<GitDatabase>
Trait Implementations
impl PartialEq for GitRemote
[src]
fn eq(&self, __arg_0: &GitRemote) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &GitRemote) -> bool
This method tests for !=
.
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