pub struct CoverageGap {
pub code: CoverageGapCode,
pub message: String,
pub scope: Option<EvaluationScope>,
}Expand description
A typed reason applicable work could not be evaluated.
Fields§
§code: CoverageGapCodeStable machine code. Automation must not parse CoverageGap::message.
message: StringHuman-readable display text.
scope: Option<EvaluationScope>Optional work scope affected by the gap.
Implementations§
Source§impl CoverageGap
impl CoverageGap
Sourcepub fn new(code: CoverageGapCode, message: impl Into<String>) -> Self
pub fn new(code: CoverageGapCode, message: impl Into<String>) -> Self
Construct a whole-check coverage gap.
Sourcepub fn scope(self, scope: EvaluationScope) -> Self
pub fn scope(self, scope: EvaluationScope) -> Self
Attach the affected work scope.
Trait Implementations§
Source§impl Clone for CoverageGap
impl Clone for CoverageGap
Source§fn clone(&self) -> CoverageGap
fn clone(&self) -> CoverageGap
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CoverageGap
impl Debug for CoverageGap
impl Eq for CoverageGap
Source§impl PartialEq for CoverageGap
impl PartialEq for CoverageGap
Source§impl Serialize for CoverageGap
impl Serialize for CoverageGap
impl StructuralPartialEq for CoverageGap
Auto Trait Implementations§
impl Freeze for CoverageGap
impl RefUnwindSafe for CoverageGap
impl Send for CoverageGap
impl Sync for CoverageGap
impl Unpin for CoverageGap
impl UnsafeUnpin for CoverageGap
impl UnwindSafe for CoverageGap
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