pub enum HealingError {
ParseFailed {
error_message: String,
input: String,
},
CoercionFailed {
from: String,
to: String,
},
MissingField {
field: String,
},
LowConfidence {
confidence: f32,
threshold: f32,
},
InvalidStructure(String),
MaxAttemptsExceeded(u32),
CoercionNotAllowed {
from: String,
to: String,
},
ParseError {
input: String,
expected_type: String,
},
TypeMismatch {
expected: String,
found: String,
},
NoMatchingVariant {
value: Value,
},
}Expand description
Healing and coercion errors.
Variants§
ParseFailed
JSON parsing failed
CoercionFailed
Type coercion failed
MissingField
Missing required field
LowConfidence
Confidence below threshold
InvalidStructure(String)
Invalid JSON structure
MaxAttemptsExceeded(u32)
Exceeded maximum healing attempts
CoercionNotAllowed
Coercion not allowed by configuration
ParseError
Parse error (specific type conversion)
TypeMismatch
Type mismatch
NoMatchingVariant
No matching variant in union
Trait Implementations§
Source§impl Clone for HealingError
impl Clone for HealingError
Source§fn clone(&self) -> HealingError
fn clone(&self) -> HealingError
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 HealingError
impl Debug for HealingError
Source§impl Display for HealingError
impl Display for HealingError
Source§impl Error for HealingError
impl Error for HealingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<HealingError> for SimpleAgentsError
impl From<HealingError> for SimpleAgentsError
Source§fn from(source: HealingError) -> SimpleAgentsError
fn from(source: HealingError) -> SimpleAgentsError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HealingError
impl RefUnwindSafe for HealingError
impl Send for HealingError
impl Sync for HealingError
impl Unpin for HealingError
impl UnsafeUnpin for HealingError
impl UnwindSafe for HealingError
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