Struct coveralls_api::Service
source · 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>,
}
Expand description
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
Implementations§
source§impl Service
impl Service
pub fn from_env() -> Option<Self>
pub fn from_ci(ci: CiService) -> Option<Self>
sourcepub fn get_travis_env() -> Self
pub fn get_travis_env() -> Self
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
pub fn get_jenkins_env() -> Self
pub fn get_semaphore_env() -> Self
pub fn get_generic_env() -> Option<Self>
Trait Implementations§
source§impl Ord for Service
impl Ord for Service
source§impl PartialEq for Service
impl PartialEq for Service
source§impl PartialOrd for Service
impl PartialOrd for Service
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Service
impl StructuralEq for Service
impl StructuralPartialEq for Service
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.