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]

fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error>

Derived Implementations

impl Debug for GitRemote
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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

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 !=.