pub struct ExtractionFieldEvidence {
pub name: String,
pub origin: ExtractionOrigin,
pub derivation: Option<Derivation>,
pub subfield: Option<String>,
pub rejected: Vec<RejectedExtractionItem>,
pub value_digest: Option<ContentDigest>,
pub distribution: FieldDistribution,
pub calibration: ExtractionCalibration,
pub provider_reported: Option<String>,
/* private fields */
}Expand description
Field evidence members follow spec 038, 3.12.1.
Core must construct evidence with new to enforce digest-only text retention (R-19).
Fields§
§name: String§origin: ExtractionOrigin§derivation: Option<Derivation>§subfield: Option<String>A failing record subfield, when applicable.
rejected: Vec<RejectedExtractionItem>§value_digest: Option<ContentDigest>§distribution: FieldDistribution§calibration: ExtractionCalibration§provider_reported: Option<String>Implementations§
Source§impl ExtractionFieldEvidence
impl ExtractionFieldEvidence
Sourcepub fn new(
name: String,
ty: &ExtractionType,
origin: ExtractionOrigin,
derivation: Option<Derivation>,
value_digest: Option<ContentDigest>,
value: Option<Value>,
items: Vec<ExtractionItemEvidence>,
) -> Self
pub fn new( name: String, ty: &ExtractionType, origin: ExtractionOrigin, derivation: Option<Derivation>, value_digest: Option<ContentDigest>, value: Option<Value>, items: Vec<ExtractionItemEvidence>, ) -> Self
Applies spec 038, 3.12.1 and R-19 using the declared type, which is not carried on the wire. Digests are preserved for present fields even when values are omitted; absent fields have no value digest. Distribution, calibration and optional metadata can be filled afterward.
pub fn value(&self) -> Option<&Value>
pub fn items(&self) -> &[ExtractionItemEvidence]
Trait Implementations§
Source§impl Clone for ExtractionFieldEvidence
impl Clone for ExtractionFieldEvidence
Source§impl Debug for ExtractionFieldEvidence
impl Debug for ExtractionFieldEvidence
Source§impl<'de> Deserialize<'de> for ExtractionFieldEvidence
impl<'de> Deserialize<'de> for ExtractionFieldEvidence
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for ExtractionFieldEvidence
impl JsonSchema for ExtractionFieldEvidence
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ExtractionFieldEvidence
impl PartialEq for ExtractionFieldEvidence
Source§impl Serialize for ExtractionFieldEvidence
impl Serialize for ExtractionFieldEvidence
impl StructuralPartialEq for ExtractionFieldEvidence
Auto Trait Implementations§
impl Freeze for ExtractionFieldEvidence
impl RefUnwindSafe for ExtractionFieldEvidence
impl Send for ExtractionFieldEvidence
impl Sync for ExtractionFieldEvidence
impl Unpin for ExtractionFieldEvidence
impl UnsafeUnpin for ExtractionFieldEvidence
impl UnwindSafe for ExtractionFieldEvidence
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