pub struct ExtractField {
pub value: Value,
pub confidence: f64,
pub source: ExtractSource,
pub calibration: ExtractCalibration,
pub probabilities: Option<IndexMap<String, f64>>,
pub present_probability: Option<f64>,
pub text: Option<String>,
pub start: Option<usize>,
pub end: Option<usize>,
pub line_probability: Option<f64>,
pub span_probability: Option<f64>,
pub error: Option<String>,
}Expand description
Extracted field, including missing values and source provenance.
Fields§
§value: ValueNative JSON value, null when missing or numeric parsing failed.
confidence: f64Decision confidence or line/span product.
source: ExtractSourceChoice or span selection.
calibration: ExtractCalibrationCalibration scope.
probabilities: Option<IndexMap<String, f64>>Categorical probabilities.
present_probability: Option<f64>Probability the field is stated.
text: Option<String>Verbatim source text, when selected.
start: Option<usize>Inclusive Unicode code point offset.
end: Option<usize>Exclusive Unicode code point offset.
line_probability: Option<f64>Line selection probability.
span_probability: Option<f64>Span selection probability.
error: Option<String>Numeric conversion diagnostic.
Trait Implementations§
Source§impl Clone for ExtractField
impl Clone for ExtractField
Source§impl Debug for ExtractField
impl Debug for ExtractField
Source§impl<'de> Deserialize<'de> for ExtractField
impl<'de> Deserialize<'de> for ExtractField
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
Auto Trait Implementations§
impl Freeze for ExtractField
impl RefUnwindSafe for ExtractField
impl Send for ExtractField
impl Sync for ExtractField
impl Unpin for ExtractField
impl UnsafeUnpin for ExtractField
impl UnwindSafe for ExtractField
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