Struct git_meta::GitRepoCloner[][src]

pub struct GitRepoCloner {
    pub url: GitUrl,
    pub credentials: Option<GitCredentials>,
    pub branch: Option<String>,
    pub path: Option<PathBuf>,
}

Fields

url: GitUrlcredentials: Option<GitCredentials>branch: Option<String>path: Option<PathBuf>

Implementations

impl GitRepoCloner[src]

pub fn new<S: AsRef<str>>(url: S) -> Result<GitRepoCloner>[src]

pub fn with_credentials(mut self: Self, creds: GitCredentials) -> Self[src]

pub fn with_branch<S: ToString>(mut self: Self, branch: S) -> Self[src]

pub fn git_clone<P: AsRef<Path>>(&self, target: P) -> Result<Repository>[src]

pub fn git_clone_shallow<P: AsRef<Path>>(&self, target: P) -> Result<Repository>[src]

pub fn build_git2_remotecallback(&self) -> RemoteCallbacks<'_>[src]

Trait Implementations

impl Clone for GitRepoCloner[src]

impl Debug for GitRepoCloner[src]

impl From<GitRepo> for GitRepoCloner[src]

Auto Trait Implementations

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> Instrument for T[src]

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

impl<D> OwoColorize for D

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.