Struct coveralls_api::CoverallsReport
source · pub struct CoverallsReport { /* private fields */ }
Expand description
Coveralls report struct for more details: https://coveralls.zendesk.com/hc/en-us/articles/201350799-API-Reference
Implementations§
source§impl CoverallsReport
impl CoverallsReport
sourcepub fn new(id: Identity) -> CoverallsReport
pub fn new(id: Identity) -> CoverallsReport
Create new coveralls report given a unique identifier which allows coveralls to identify the user and project
sourcepub fn add_source(&mut self, source: Source)
pub fn add_source(&mut self, source: Source)
Add generated source data to coveralls report.
sourcepub fn set_commit(&mut self, commit: &str)
pub fn set_commit(&mut self, commit: &str)
Sets the commit ID. Overrides more detailed git info
sourcepub fn set_detailed_git_info(&mut self, git: GitInfo)
pub fn set_detailed_git_info(&mut self, git: GitInfo)
Set detailed git information, overrides commit ID if set.
sourcepub fn send_to_coveralls(&mut self) -> Result<(), Error>
pub fn send_to_coveralls(&mut self) -> Result<(), Error>
Send report to the coveralls.io directly. For coveralls hosted on other platforms see send_to_endpoint
sourcepub fn send_to_endpoint(&mut self, url: &str) -> Result<(), Error>
pub fn send_to_endpoint(&mut self, url: &str) -> Result<(), Error>
Sends coveralls report to the specified url
pub fn upload_status(&mut self) -> UploadStatus
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CoverallsReport
impl Send for CoverallsReport
impl Sync for CoverallsReport
impl Unpin for CoverallsReport
impl !UnwindSafe for CoverallsReport
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