[][src]Struct guidon::GitOptionsBuilder

pub struct GitOptionsBuilder { /* fields omitted */ }

Builder for GitOptions.

Implementations

impl GitOptionsBuilder[src]

pub fn repo<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self[src]

Repo url

pub fn rev<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self[src]

The revision to retrieve (branch, tag...). master by default. A branch should be given as origin/branch_name A tag as tag_name, and a commit by id

pub fn credentials<VALUE: Into<(String, String)>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

Credentials if needed (user/password)

pub fn unsecure<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self[src]

if set to true, certificate validation will not be done. false by default

pub fn auto_proxy<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self[src]

if set to true will try to autodetect proxy configuration. false by default

pub fn build(&self) -> Result<GitOptions, String>[src]

Builds a new GitOptions.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for GitOptionsBuilder[src]

impl Default for GitOptionsBuilder[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, U> Into<U> for T where
    U: From<T>, 
[src]

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.