pub struct CorrectionProposal {
pub id: String,
pub patch_path: String,
pub operation: PatchOperation,
pub value: Option<Value>,
pub from: Option<String>,
pub confidence: f64,
pub description: String,
pub reasoning: Option<String>,
pub affected_endpoints: Vec<String>,
pub before: Option<Value>,
pub after: Option<Value>,
}Expand description
Correction proposal with patch operations
Fields§
§id: StringUnique identifier for this correction
patch_path: StringJSON Patch path to apply the correction
operation: PatchOperationJSON Patch operation (add, remove, replace, etc.)
value: Option<Value>Value to apply (for add/replace operations)
from: Option<String>Value to remove (for remove/replace operations)
confidence: f64Confidence score for this correction (0.0-1.0)
description: StringHuman-readable description of the correction
reasoning: Option<String>Reasoning for this correction
affected_endpoints: Vec<String>Affected endpoints
before: Option<Value>Before/after comparison
after: Option<Value>State after the correction (for comparison)
Trait Implementations§
Source§impl Clone for CorrectionProposal
impl Clone for CorrectionProposal
Source§fn clone(&self) -> CorrectionProposal
fn clone(&self) -> CorrectionProposal
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 CorrectionProposal
impl Debug for CorrectionProposal
Source§impl<'de> Deserialize<'de> for CorrectionProposal
impl<'de> Deserialize<'de> for CorrectionProposal
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CorrectionProposal, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CorrectionProposal, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CorrectionProposal
impl Serialize for CorrectionProposal
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
Auto Trait Implementations§
impl Freeze for CorrectionProposal
impl RefUnwindSafe for CorrectionProposal
impl Send for CorrectionProposal
impl Sync for CorrectionProposal
impl Unpin for CorrectionProposal
impl UnsafeUnpin for CorrectionProposal
impl UnwindSafe for CorrectionProposal
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