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

fn new(url: &Url) -> GitRemote

fn url(&self) -> &Url

fn rev_for(&self, path: &Path, reference: &GitReference) -> CargoResult<GitRevision>

fn checkout(&self, into: &Path) -> CargoResult<GitDatabase>

fn db_at(&self, db_path: &Path) -> CargoResult<GitDatabase>

Trait Implementations

impl Encodable for GitRemote

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

Derived Implementations

impl Debug for GitRemote

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

impl Clone for GitRemote

fn clone(&self) -> GitRemote

fn clone_from(&mut self, source: &Self)

impl PartialEq for GitRemote

fn eq(&self, __arg_0: &GitRemote) -> bool

fn ne(&self, __arg_0: &GitRemote) -> bool