pub enum ResolutionAction {
NoContradiction,
SupersedeExisting {
existing_id: String,
new_id: String,
similarity: f64,
score_gap: f64,
entity_id: Option<String>,
winner_score: Option<f64>,
loser_score: Option<f64>,
winner_components: Option<ScoreComponents>,
loser_components: Option<ScoreComponents>,
},
SkipNew {
reason: SkipReason,
existing_id: String,
new_id: String,
entity_id: Option<String>,
similarity: Option<f64>,
winner_score: Option<f64>,
loser_score: Option<f64>,
winner_components: Option<ScoreComponents>,
loser_components: Option<ScoreComponents>,
},
TieLeaveBoth {
existing_id: String,
new_id: String,
similarity: f64,
score_gap: f64,
entity_id: Option<String>,
winner_score: Option<f64>,
loser_score: Option<f64>,
winner_components: Option<ScoreComponents>,
loser_components: Option<ScoreComponents>,
},
}Expand description
The action to take after checking pin status and tie-zone guard during contradiction resolution.
Variants§
NoContradiction
No contradiction detected — pass through.
SupersedeExisting
New claim wins; supersede the existing claim.
Fields
§
winner_components: Option<ScoreComponents>Winner’s per-component score breakdown (populated by orchestration).
§
loser_components: Option<ScoreComponents>Loser’s per-component score breakdown (populated by orchestration).
SkipNew
Skip the new claim (existing wins or is pinned).
Fields
§
reason: SkipReason§
winner_components: Option<ScoreComponents>Winner’s per-component score breakdown (populated by orchestration).
§
loser_components: Option<ScoreComponents>Loser’s per-component score breakdown (populated by orchestration).
TieLeaveBoth
Score gap is within tie-zone tolerance; keep both claims.
Fields
§
winner_components: Option<ScoreComponents>Winner’s per-component score breakdown (populated by orchestration).
§
loser_components: Option<ScoreComponents>Loser’s per-component score breakdown (populated by orchestration).
Trait Implementations§
Source§impl Clone for ResolutionAction
impl Clone for ResolutionAction
Source§fn clone(&self) -> ResolutionAction
fn clone(&self) -> ResolutionAction
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 ResolutionAction
impl Debug for ResolutionAction
Source§impl<'de> Deserialize<'de> for ResolutionAction
impl<'de> Deserialize<'de> for ResolutionAction
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResolutionAction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResolutionAction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ResolutionAction
impl PartialEq for ResolutionAction
Source§impl Serialize for ResolutionAction
impl Serialize for ResolutionAction
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 ResolutionAction
Auto Trait Implementations§
impl Freeze for ResolutionAction
impl RefUnwindSafe for ResolutionAction
impl Send for ResolutionAction
impl Sync for ResolutionAction
impl Unpin for ResolutionAction
impl UnsafeUnpin for ResolutionAction
impl UnwindSafe for ResolutionAction
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