pub struct Reporter { /* private fields */ }
Expand description
A reporter for the SVP API
Implementations§
Source§impl Reporter
impl Reporter
Sourcepub fn load_resume<T: DeserializeOwned>(&self) -> Option<T>
pub fn load_resume<T: DeserializeOwned>(&self) -> Option<T>
Load the resume file if it exists
Sourcepub fn set_target_branch_url(&mut self, url: Url)
pub fn set_target_branch_url(&mut self, url: Url)
Set the target branch URL
Sourcepub fn set_commit_message(&mut self, message: String)
pub fn set_commit_message(&mut self, message: String)
Set the commit message
Sourcepub fn report_success<T>(self, value: Option<i32>, context: Option<T>)where
T: Serialize,
pub fn report_success<T>(self, value: Option<i32>, context: Option<T>)where
T: Serialize,
Report success
Sourcepub fn report_success_debian<T>(
self,
value: Option<i32>,
context: Option<T>,
changelog: Option<ChangelogBehaviour>,
)where
T: Serialize,
pub fn report_success_debian<T>(
self,
value: Option<i32>,
context: Option<T>,
changelog: Option<ChangelogBehaviour>,
)where
T: Serialize,
Report success with Debian-specific context
Auto Trait Implementations§
impl Freeze for Reporter
impl RefUnwindSafe for Reporter
impl Send for Reporter
impl Sync for Reporter
impl Unpin for Reporter
impl UnwindSafe for Reporter
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