[][src]Struct gitweb::options::Opt

pub struct Opt {
    pub branch: Option<String>,
    pub tag: Option<String>,
    pub commit: Option<String>,
    pub browser: Option<String>,
    pub remote: Option<String>,
    pub verbose: bool,
}

Fields

branch: Option<String>

Set the branch (alias for --tag)

By setting the branch, you can override the default behavior that will set the branch to the current one in the repository. If something went wrong with the current one, it will set the value to master.

tag: Option<String>

Set the tag (alias for --branch).

By setting the tag, you can override the default behavior that will set the branch to the current one in the repository and will instead take the reference tag (or branch) given as parameter.

commit: Option<String>

Set a commit

By setting a commit, you can override the default behavior that will set the branch to the current one in the repository.

browser: Option<String>

Set the browser

If you set the browser option, it will override the other configuration. Here is the list by order of overrides: the --browser option given in the command line, then the environment variable $BROWSER on Linux or %BROWSER% on Windows (this is a non standard variable), then the default web browser on the system If you give an empty string to browser option, the program will only print the remote URL into the stdout.

remote: Option<String>

Set the remote

By default, the selected remote will be origin by convention. You can override this setting by using this option.

verbose: bool

Set the verbosity of the command

By settings this option, you will have more feedback on the output.

Trait Implementations

impl Debug for Opt[src]

impl StructOpt for Opt[src]

impl StructOptInternal for Opt[src]

Auto Trait Implementations

impl RefUnwindSafe for Opt

impl Send for Opt

impl Sync for Opt

impl Unpin for Opt

impl UnwindSafe for Opt

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, 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.