pub struct ReportRunIn {
pub branch: Option<String>,
pub changed: Option<bool>,
pub commit_sha: Option<String>,
pub diffstat: Option<String>,
pub error: Option<String>,
pub id: Option<String>,
pub ok: Option<bool>,
pub run_id: Option<String>,
}Fields§
§branch: Option<String>Branch, CommitSha and Diffstat describe what the run produced; Error is the failure when OK is false. Each is clamped, never rejected.
changed: Option<bool>Changed says whether the run produced any commit. It is INDEPENDENT of OK: a run can succeed and change nothing (there was nothing to do), and a run can fail after committing some of its work. Two questions, two booleans.
commit_sha: Option<String>CommitSha is the tip the run pushed, clamped to 128 characters. Empty when it pushed nothing, which is the same case Changed reports false for.
diffstat: Option<String>Diffstat is the run’s own summary of what it changed, as text, clamped to 64 KiB. Free-form: it is shown, never parsed.
error: Option<String>Error is why the run failed, clamped to 64 KiB. It is CLAMPED rather than refused — a truncated reason is worth more than a rejected report, because a rejected report leaves the durable workflow waiting forever.
id: Option<String>ID is the machine reporting, from the path.
ok: Option<bool>OK is whether the run succeeded; Changed whether it produced any commit.
run_id: Option<String>RunID is the routed run being completed, from the path.
Implementations§
Source§impl ReportRunIn
impl ReportRunIn
pub fn new() -> ReportRunIn
Trait Implementations§
Source§impl Clone for ReportRunIn
impl Clone for ReportRunIn
Source§fn clone(&self) -> ReportRunIn
fn clone(&self) -> ReportRunIn
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more