pub enum DocumentKind {
Invoice,
CreditNote,
Receipt,
BankStatement,
Acknowledgement,
Notice,
Unknown,
}Expand description
What kind of document it is.
Variants§
Invoice
An invoice.
CreditNote
A credit note, cancelling an invoice in whole or in part.
Receipt
A receipt: a till receipt, a ticket, a confirmation of payment.
BankStatement
A statement of a bank or payment account.
Acknowledgement
An authority’s confirmation that a filing was received (spec part 0007).
Notice
An authority’s notice or assessment, e.g. a tax assessment.
Unknown
A kind of a later version; kept as received, not interpreted, and not written by this version.
Trait Implementations§
Source§impl Clone for DocumentKind
impl Clone for DocumentKind
Source§fn clone(&self) -> DocumentKind
fn clone(&self) -> DocumentKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DocumentKind
Source§impl Debug for DocumentKind
impl Debug for DocumentKind
Source§impl<'de> Deserialize<'de> for DocumentKind
impl<'de> Deserialize<'de> for DocumentKind
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 DocumentKind
Source§impl Hash for DocumentKind
impl Hash for DocumentKind
Source§impl Ord for DocumentKind
impl Ord for DocumentKind
Source§fn cmp(&self, other: &DocumentKind) -> Ordering
fn cmp(&self, other: &DocumentKind) -> Ordering
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
Source§impl PartialEq for DocumentKind
impl PartialEq for DocumentKind
Source§impl PartialOrd for DocumentKind
impl PartialOrd for DocumentKind
Source§impl Serialize for DocumentKind
impl Serialize for DocumentKind
impl StructuralPartialEq for DocumentKind
Auto Trait Implementations§
impl Freeze for DocumentKind
impl RefUnwindSafe for DocumentKind
impl Send for DocumentKind
impl Sync for DocumentKind
impl Unpin for DocumentKind
impl UnsafeUnpin for DocumentKind
impl UnwindSafe for DocumentKind
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