[][src]Struct coveralls_api::Service

pub struct Service {
    pub name: CiService,
    pub job_id: Option<String>,
    pub number: Option<String>,
    pub build_url: Option<String>,
    pub branch: Option<String>,
    pub pull_request: Option<String>,
}

Service's are used for CI integration. Coveralls current supports

  • travis ci
  • travis pro
  • circleCI
  • Semaphore
  • JenkinsCI
  • Codeship

Fields

name: CiService

Name of the CiService

job_id: Option<String>

Job ID

number: Option<String>

Optional service_number

build_url: Option<String>

Optional service_build_url

branch: Option<String>

Optional service_branch

pull_request: Option<String>

Optional service_pull_request

Methods

impl Service[src]

pub fn from_env() -> Option<Self>[src]

pub fn from_ci(ci: CiService) -> Option<Self>[src]

pub fn get_travis_env() -> Self[src]

Gets service variables from travis environment Warning is unable to figure out if travis pro or free so assumes free

pub fn get_circle_env() -> Self[src]

pub fn get_jenkins_env() -> Self[src]

pub fn get_semaphore_env() -> Self[src]

pub fn get_generic_env() -> Option<Self>[src]

Trait Implementations

impl Clone for Service[src]

impl Debug for Service[src]

impl Eq for Service[src]

impl Hash for Service[src]

impl Ord for Service[src]

impl PartialEq<Service> for Service[src]

impl PartialOrd<Service> for Service[src]

impl StructuralEq for Service[src]

impl StructuralPartialEq for Service[src]

Auto Trait Implementations

impl RefUnwindSafe for Service

impl Send for Service

impl Sync for Service

impl Unpin for Service

impl UnwindSafe for Service

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.