pub enum RefinementPayload {
EntityMerge {
existing_id: String,
new_id: String,
similarity: f64,
},
RelationConflict {
existing_id: String,
new_id: String,
from: String,
to: String,
old_type: String,
new_type: String,
},
DetectContradiction,
SuggestEntity {
name_hint: Option<String>,
},
DedupMerge,
}Expand description
Tagged-union payload emitted by the background refinery.
Each variant carries exactly the fields needed for that action type. Decoded at the route boundary so downstream consumers (MCP wrappers, agent skills) can pattern-match instead of inspecting raw JSON strings.
Variants§
Trait Implementations§
Source§impl Clone for RefinementPayload
impl Clone for RefinementPayload
Source§fn clone(&self) -> RefinementPayload
fn clone(&self) -> RefinementPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RefinementPayload
impl Debug for RefinementPayload
Source§impl<'de> Deserialize<'de> for RefinementPayload
impl<'de> Deserialize<'de> for RefinementPayload
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
Source§impl PartialEq for RefinementPayload
impl PartialEq for RefinementPayload
Source§fn eq(&self, other: &RefinementPayload) -> bool
fn eq(&self, other: &RefinementPayload) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RefinementPayload
impl Serialize for RefinementPayload
impl StructuralPartialEq for RefinementPayload
Auto Trait Implementations§
impl Freeze for RefinementPayload
impl RefUnwindSafe for RefinementPayload
impl Send for RefinementPayload
impl Sync for RefinementPayload
impl Unpin for RefinementPayload
impl UnsafeUnpin for RefinementPayload
impl UnwindSafe for RefinementPayload
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