[][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 PartialOrd<Service> for Service[src]

impl PartialEq<Service> for Service[src]

impl Clone for Service[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Ord for Service[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Eq for Service[src]

impl Debug for Service[src]

impl Hash for Service[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for Service

impl Sync for Service

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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