pub struct DecisionLogEntry {Show 13 fields
pub ts: i64,
pub entity_id: String,
pub new_claim_id: String,
pub existing_claim_id: String,
pub similarity: f64,
pub action: String,
pub reason: Option<String>,
pub winner_score: Option<f64>,
pub loser_score: Option<f64>,
pub winner_components: Option<ScoreComponents>,
pub loser_components: Option<ScoreComponents>,
pub loser_claim_json: Option<String>,
pub mode: String,
}Expand description
A single row in decisions.jsonl.
Field names use snake_case to match the TypeScript output byte-for-byte.
Fields§
§ts: i64§entity_id: String§new_claim_id: String§existing_claim_id: String§similarity: f64§action: StringOne of: “supersede_existing”, “skip_new”, “shadow”, “tie_leave_both”.
reason: Option<String>§winner_score: Option<f64>§loser_score: Option<f64>§winner_components: Option<ScoreComponents>Per-component score breakdown for the formula winner (Slice 2f).
loser_components: Option<ScoreComponents>Per-component score breakdown for the formula loser (Slice 2f).
loser_claim_json: Option<String>Full canonical Claim JSON for the loser (raw string, NOT parsed).
Only populated on supersede_existing rows.
mode: String“active” or “shadow”.
Trait Implementations§
Source§impl Clone for DecisionLogEntry
impl Clone for DecisionLogEntry
Source§fn clone(&self) -> DecisionLogEntry
fn clone(&self) -> DecisionLogEntry
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 DecisionLogEntry
impl Debug for DecisionLogEntry
Source§impl<'de> Deserialize<'de> for DecisionLogEntry
impl<'de> Deserialize<'de> for DecisionLogEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DecisionLogEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DecisionLogEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DecisionLogEntry
impl PartialEq for DecisionLogEntry
Source§impl Serialize for DecisionLogEntry
impl Serialize for DecisionLogEntry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DecisionLogEntry
Auto Trait Implementations§
impl Freeze for DecisionLogEntry
impl RefUnwindSafe for DecisionLogEntry
impl Send for DecisionLogEntry
impl Sync for DecisionLogEntry
impl Unpin for DecisionLogEntry
impl UnsafeUnpin for DecisionLogEntry
impl UnwindSafe for DecisionLogEntry
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