pub enum ExtractionError {
EmptyText,
TextTooLong {
len: usize,
max: usize,
},
InvalidConfidence {
value: f64,
min: f64,
max: f64,
},
}Expand description
Errors from entity extraction.
Note: LLM errors result in graceful degradation (fallback entity), not an error return.
Variants§
EmptyText
Input text is empty
TextTooLong
Input text exceeds size limit
InvalidConfidence
Invalid confidence threshold
Trait Implementations§
Source§impl Clone for ExtractionError
impl Clone for ExtractionError
Source§fn clone(&self) -> ExtractionError
fn clone(&self) -> ExtractionError
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 ExtractionError
impl Debug for ExtractionError
Source§impl Display for ExtractionError
impl Display for ExtractionError
Source§impl Error for ExtractionError
impl Error for ExtractionError
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()
Auto Trait Implementations§
impl Freeze for ExtractionError
impl RefUnwindSafe for ExtractionError
impl Send for ExtractionError
impl Sync for ExtractionError
impl Unpin for ExtractionError
impl UnwindSafe for ExtractionError
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