pub struct RecordedField {
pub field: ClaimField,
pub value: String,
pub from_attachment: AttachmentId,
pub corrected: bool,
}Expand description
A value that has been reviewed and is now part of the record.
It keeps its provenance: which document it came from, and whether a human corrected it. A recorded field is no longer a proposal — the review is over — but “where did this number come from” stays answerable.
Fields§
§field: ClaimFieldWhich field.
value: StringThe accepted value.
from_attachment: AttachmentIdThe document it was read from.
corrected: booltrue when the user changed the extracted value before accepting it.
Trait Implementations§
Source§impl Clone for RecordedField
impl Clone for RecordedField
Source§impl Debug for RecordedField
impl Debug for RecordedField
Source§impl<'de> Deserialize<'de> for RecordedField
impl<'de> Deserialize<'de> for RecordedField
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
impl Eq for RecordedField
Source§impl PartialEq for RecordedField
impl PartialEq for RecordedField
Source§impl Serialize for RecordedField
impl Serialize for RecordedField
impl StructuralPartialEq for RecordedField
Auto Trait Implementations§
impl Freeze for RecordedField
impl RefUnwindSafe for RecordedField
impl Send for RecordedField
impl Sync for RecordedField
impl Unpin for RecordedField
impl UnsafeUnpin for RecordedField
impl UnwindSafe for RecordedField
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.