[][src]Enum detect_git_service::GitService

pub enum GitService {
    GitHub {
        user: String,
        repo: String,
        branch: Option<String>,
    },
    GitHubEnterprise {
        user: String,
        repo: String,
        branch: Option<String>,
    },
    GitLab {
        user: String,
        repo: String,
        branch: Option<String>,
    },
    Bitbucket {
        user: String,
        repo: String,
        branch: Option<String>,
    },
}

Enum variants of Git hosting services which this library supports.

Variants

GitHub

GitHub http://github.com

Fields of GitHub

user: String

User name in the service

repo: String

Repository name in the service

branch: Option<String>

Current branch name if available

GitHubEnterprise

GitHub Enterprise https://github.com/enterprise

Fields of GitHubEnterprise

user: String

User name in the service

repo: String

Repository name in the service

branch: Option<String>

Current branch name if available

GitLab

GitLab https://gitlab.com/

Fields of GitLab

user: String

User name in the service

repo: String

Repository name in the service

branch: Option<String>

Current branch name if available

Bitbucket

Bitbucket https://bitbucket.org/

Fields of Bitbucket

user: String

User name in the service

repo: String

Repository name in the service

branch: Option<String>

Current branch name if available

Methods

impl GitService[src]

pub fn user(&self) -> &String[src]

pub fn repo(&self) -> &String[src]

pub fn branch(&self) -> &Option<String>[src]

Trait Implementations

impl Debug for GitService[src]

Auto Trait Implementations

impl Send for GitService

impl Sync for GitService

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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