pub enum NormalizeSummary {
Normalized {
edtf: String,
level: u8,
notes: Vec<NoteJson>,
},
Ambiguous {
interpretations: Vec<InterpretationJson>,
},
NoMatch {
reason: &'static str,
decision: &'static str,
},
}Expand description
The JSON shape normalize returns, discriminated by kind:
"normalized" | "ambiguous" | "noMatch". Semantics and the N-decision
ids inside notes: docs/normalize-notes.md.
Variants§
Normalized
One deterministic answer.
Fields
Ambiguous
More than one plausible reading; the form should ask, not pick.
Fields
§
interpretations: Vec<InterpretationJson>Every plausible reading, in table order.
NoMatch
No answer; reason is the triage discriminator:
"outOfGrammar" (N11) | "explicitNoDate" (N12) |
"impossibleDate" (N14).
Trait Implementations§
Source§impl Debug for NormalizeSummary
impl Debug for NormalizeSummary
Auto Trait Implementations§
impl Freeze for NormalizeSummary
impl RefUnwindSafe for NormalizeSummary
impl Send for NormalizeSummary
impl Sync for NormalizeSummary
impl Unpin for NormalizeSummary
impl UnsafeUnpin for NormalizeSummary
impl UnwindSafe for NormalizeSummary
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