[][src]Struct coveralls_api::CoverallsReport

pub struct CoverallsReport { /* fields omitted */ }

Coveralls report struct for more details: https://coveralls.zendesk.com/hc/en-us/articles/201350799-API-Reference

Methods

impl CoverallsReport[src]

pub fn new(id: Identity) -> CoverallsReport[src]

Create new coveralls report given a unique identifier which allows coveralls to identify the user and project

pub fn add_source(&mut self, source: Source)[src]

Add generated source data to coveralls report.

pub fn set_commit(&mut self, commit: &str)[src]

Sets the commit ID. Overrides more detailed git info

pub fn set_detailed_git_info(&mut self, git: GitInfo)[src]

Set detailed git information, overrides commit ID if set.

pub fn send_to_coveralls(&mut self) -> Result<(), Error>[src]

Send report to the coveralls.io directly. For coveralls hosted on other platforms see send_to_endpoint

pub fn send_to_endpoint(&mut self, url: &str) -> Result<(), Error>[src]

Sends coveralls report to the specified url

pub fn upload_status(&mut self) -> UploadStatus[src]

Trait Implementations

impl Serialize for CoverallsReport[src]

Auto Trait Implementations

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 = 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]