Struct cargo::sources::git::GitRemote[][src]

pub struct GitRemote { /* fields omitted */ }

GitRemote represents a remote repository. It gets cloned into a local GitDatabase.

Implementations

impl GitRemote[src]

pub fn new(url: &Url) -> GitRemote[src]

pub fn url(&self) -> &Url[src]

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

pub fn checkout(
    &self,
    into: &Path,
    reference: &GitReference,
    cargo_config: &Config
) -> CargoResult<(GitDatabase, GitRevision)>
[src]

pub fn db_at(&self, db_path: &Path) -> CargoResult<GitDatabase>[src]

Trait Implementations

impl Clone for GitRemote[src]

impl Debug for GitRemote[src]

impl PartialEq<GitRemote> for GitRemote[src]

impl Serialize for GitRemote[src]

impl StructuralPartialEq for GitRemote[src]

Auto Trait Implementations

impl RefUnwindSafe for GitRemote

impl Send for GitRemote

impl Sync for GitRemote

impl Unpin for GitRemote

impl UnwindSafe for GitRemote

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]