#[non_exhaustive]pub enum ClaimEvent {
DraftCreated,
ReferenceSet {
value: String,
},
ReceiptAttached {
attachment_id: AttachmentId,
},
FieldsProposed {
attachment_id: AttachmentId,
fields: Vec<ProposedField>,
},
ProposedFieldRevised {
field: ClaimField,
previous: Option<String>,
value: String,
},
ProposalAccepted {
attachment_id: AttachmentId,
fields: Vec<RecordedField>,
},
ProposalAbandoned {
attachment_id: AttachmentId,
},
ReceiptDiscarded,
}Expand description
One committed claim event.
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.
DraftCreated
The case came into existence.
ReferenceSet
The hand-typed reference changed.
ReceiptAttached
A document arrived.
Fields
§
attachment_id: AttachmentIdThe document.
FieldsProposed
Values were read out of the document and offered for review.
Fields
§
attachment_id: AttachmentIdThe document they were read from.
§
fields: Vec<ProposedField>What was read.
ProposedFieldRevised
The user changed one proposed value.
Fields
§
field: ClaimFieldWhich field.
ProposalAccepted
The review was accepted and the values became the record.
Fields
§
attachment_id: AttachmentIdThe document the values came from.
§
fields: Vec<RecordedField>What was recorded.
ProposalAbandoned
The reading was thrown away; the document stayed.
Fields
§
attachment_id: AttachmentIdThe document whose reading was thrown away.
ReceiptDiscarded
The document was thrown away.
Implementations§
Source§impl ClaimEvent
impl ClaimEvent
Sourcepub const fn event_type(&self) -> &'static str
pub const fn event_type(&self) -> &'static str
The stable event type label stored on the committed event.
Trait Implementations§
Source§impl Clone for ClaimEvent
impl Clone for ClaimEvent
Source§impl Debug for ClaimEvent
impl Debug for ClaimEvent
Source§impl<'de> Deserialize<'de> for ClaimEvent
impl<'de> Deserialize<'de> for ClaimEvent
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 ClaimEvent
Source§impl PartialEq for ClaimEvent
impl PartialEq for ClaimEvent
Source§impl Serialize for ClaimEvent
impl Serialize for ClaimEvent
impl StructuralPartialEq for ClaimEvent
Auto Trait Implementations§
impl Freeze for ClaimEvent
impl RefUnwindSafe for ClaimEvent
impl Send for ClaimEvent
impl Sync for ClaimEvent
impl Unpin for ClaimEvent
impl UnsafeUnpin for ClaimEvent
impl UnwindSafe for ClaimEvent
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.