#[non_exhaustive]pub enum ClaimCommand {
CreateDraft,
SetReference {
value: String,
},
AttachReceipt {
attachment_id: AttachmentId,
},
ProposeFields {
attachment_id: AttachmentId,
fields: Vec<ProposedField>,
},
ReviseProposedField {
field: ClaimField,
value: String,
},
AcceptProposal,
AbandonReview,
DiscardReceipt,
}Expand description
One typed claim command.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CreateDraft
Bring the case into existence.
SetReference
Set the hand-typed reference.
AttachReceipt
Record that a document arrived.
Fields
§
attachment_id: AttachmentIdThe document.
ProposeFields
Offer values read from the attached document for review.
Server-issued: it carries what an extractor found, so its origin is an internal policy or a verified callback, never a user’s sentence.
Fields
§
attachment_id: AttachmentIdThe document the values were read from.
§
fields: Vec<ProposedField>What was read.
ReviseProposedField
Change one proposed value while the review is open.
Not an answer to the review: the card stays open, the proposal stays a proposal, and the value is marked as edited by a human.
AcceptProposal
Answer the review by accepting it: the proposal becomes the record.
AbandonReview
Answer the review by throwing the reading away, keeping the document.
DiscardReceipt
Throw the document away without recording anything.
Trait Implementations§
Source§impl Clone for ClaimCommand
impl Clone for ClaimCommand
Source§impl Debug for ClaimCommand
impl Debug for ClaimCommand
Source§impl<'de> Deserialize<'de> for ClaimCommand
impl<'de> Deserialize<'de> for ClaimCommand
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 ClaimCommand
Source§impl PartialEq for ClaimCommand
impl PartialEq for ClaimCommand
Source§impl Serialize for ClaimCommand
impl Serialize for ClaimCommand
impl StructuralPartialEq for ClaimCommand
Auto Trait Implementations§
impl Freeze for ClaimCommand
impl RefUnwindSafe for ClaimCommand
impl Send for ClaimCommand
impl Sync for ClaimCommand
impl Unpin for ClaimCommand
impl UnsafeUnpin for ClaimCommand
impl UnwindSafe for ClaimCommand
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.