#[non_exhaustive]pub enum ClaimField {
Merchant,
Total,
ReceiptDate,
}Expand description
A field this domain derives from an incoming document.
A closed set, because it is also the parameter of an obligation and an argument the interpreter fills in: free-text field names would make two spellings of the same field two different obligations.
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.
Merchant
Who issued the receipt.
Total
The amount paid, in cents, as written on the receipt.
ReceiptDate
The date on the receipt.
Implementations§
Trait Implementations§
Source§impl Clone for ClaimField
impl Clone for ClaimField
impl Copy for ClaimField
Source§impl Debug for ClaimField
impl Debug for ClaimField
Source§impl<'de> Deserialize<'de> for ClaimField
impl<'de> Deserialize<'de> for ClaimField
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 ClaimField
Source§impl Hash for ClaimField
impl Hash for ClaimField
Source§impl JsonSchema for ClaimField
impl JsonSchema for ClaimField
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 Ord for ClaimField
impl Ord for ClaimField
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ClaimField
impl PartialEq for ClaimField
Source§impl PartialOrd for ClaimField
impl PartialOrd for ClaimField
Source§impl Serialize for ClaimField
impl Serialize for ClaimField
impl StructuralPartialEq for ClaimField
Auto Trait Implementations§
impl Freeze for ClaimField
impl RefUnwindSafe for ClaimField
impl Send for ClaimField
impl Sync for ClaimField
impl Unpin for ClaimField
impl UnsafeUnpin for ClaimField
impl UnwindSafe for ClaimField
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.