pub struct ReceiptNarrative {
pub fragments: [&'static str; 8],
pub count: u8,
pub risk_level: NarrativeRisk,
}Expand description
An auto-generated human-readable narrative describing a mutation.
Built from the receipt explain plus optional field intents, policy class, and segment roles. This is the “operator artifact” layer that turns binary receipt data into sentences an operator can actually read.
Fields§
§fragments: [&'static str; 8]Sentence fragments describing what happened. Up to 8 fragments.
count: u8Number of valid fragments.
risk_level: NarrativeRiskOverall risk level of this mutation.
Implementations§
Source§impl ReceiptNarrative
impl ReceiptNarrative
Sourcepub fn from_explain(explain: &ReceiptExplain) -> ReceiptNarrative
pub fn from_explain(explain: &ReceiptExplain) -> ReceiptNarrative
Generate a narrative from a receipt explanation.
Produces a sequence of human-readable fragments describing the mutation, along with a risk assessment.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReceiptNarrative
impl RefUnwindSafe for ReceiptNarrative
impl Send for ReceiptNarrative
impl Sync for ReceiptNarrative
impl Unpin for ReceiptNarrative
impl UnsafeUnpin for ReceiptNarrative
impl UnwindSafe for ReceiptNarrative
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