pub struct CaseNarrative {
pub storyline: String,
pub evidence_points: Vec<String>,
pub violated_expectations: Vec<ViolatedExpectation>,
pub red_flags: Vec<RedFlag>,
pub recommendation: CaseRecommendation,
pub investigation_notes: Vec<String>,
}Expand description
Case narrative for SAR-style reporting.
Fields§
§storyline: StringSummary storyline
evidence_points: Vec<String>Key evidence points
violated_expectations: Vec<ViolatedExpectation>Violated expectations
red_flags: Vec<RedFlag>Red flags identified
recommendation: CaseRecommendationRecommended action
investigation_notes: Vec<String>Investigation notes
Implementations§
Source§impl CaseNarrative
impl CaseNarrative
Sourcepub fn add_evidence(&mut self, evidence: &str)
pub fn add_evidence(&mut self, evidence: &str)
Add an evidence point.
Sourcepub fn add_violated_expectation(&mut self, expectation: ViolatedExpectation)
pub fn add_violated_expectation(&mut self, expectation: ViolatedExpectation)
Add a violated expectation.
Sourcepub fn add_red_flag(&mut self, flag: RedFlag)
pub fn add_red_flag(&mut self, flag: RedFlag)
Add a red flag.
Sourcepub fn with_recommendation(self, recommendation: CaseRecommendation) -> Self
pub fn with_recommendation(self, recommendation: CaseRecommendation) -> Self
Set recommendation.
Sourcepub fn generate_text(&self) -> String
pub fn generate_text(&self) -> String
Generate narrative text.
Trait Implementations§
Source§impl Clone for CaseNarrative
impl Clone for CaseNarrative
Source§fn clone(&self) -> CaseNarrative
fn clone(&self) -> CaseNarrative
Returns a duplicate of the value. Read more
1.0.0 · 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 CaseNarrative
impl Debug for CaseNarrative
Source§impl Default for CaseNarrative
impl Default for CaseNarrative
Source§fn default() -> CaseNarrative
fn default() -> CaseNarrative
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CaseNarrative
impl<'de> Deserialize<'de> for CaseNarrative
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CaseNarrative
impl RefUnwindSafe for CaseNarrative
impl Send for CaseNarrative
impl Sync for CaseNarrative
impl Unpin for CaseNarrative
impl UnwindSafe for CaseNarrative
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