pub struct Interpretation {
pub observation: Observation,
pub rule_id: &'static str,
pub matched_span: Range<usize>,
pub rationale: String,
}Expand description
One claim interpret made about a capture, and the evidence for it.
Every field here exists to make the claim falsifiable: rule_id names
exactly which rule fired (explain(rule_id) always resolves it,
AC-4.12), and matched_span indexes the real bytes of the response
that justified it – not a paraphrase, the actual slice.
Fields§
§observation: Observation§rule_id: &'static str§matched_span: Range<usize>Byte range within capture.response that justified the claim.
Always a valid range into that slice: matched_span.start <= matched_span.end <= capture.response.len().
rationale: StringTrait Implementations§
Source§impl Clone for Interpretation
impl Clone for Interpretation
Source§fn clone(&self) -> Interpretation
fn clone(&self) -> Interpretation
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 Interpretation
impl Debug for Interpretation
Source§impl PartialEq for Interpretation
impl PartialEq for Interpretation
impl StructuralPartialEq for Interpretation
Auto Trait Implementations§
impl Freeze for Interpretation
impl RefUnwindSafe for Interpretation
impl Send for Interpretation
impl Sync for Interpretation
impl Unpin for Interpretation
impl UnsafeUnpin for Interpretation
impl UnwindSafe for Interpretation
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