pub enum DocumentRef {
PurchaseOrder(String),
VendorInvoice(String),
CustomerInvoice(String),
GoodsReceipt(String),
Delivery(String),
Payment(String),
Receipt(String),
Manual,
}Expand description
Typed reference to a source document that originated this journal entry.
Allows downstream consumers to identify the document type without
parsing prefix strings from the reference field.
Variants§
PurchaseOrder(String)
Purchase order reference (e.g., “PO-2024-000001”)
VendorInvoice(String)
Vendor invoice reference (e.g., “INV-2024-000001”)
CustomerInvoice(String)
Customer invoice / sales order reference (e.g., “SO-2024-000001”)
GoodsReceipt(String)
Goods receipt reference (e.g., “GR-2024-000001”)
Delivery(String)
Delivery reference
Payment(String)
Payment reference (e.g., “PAY-2024-000001”)
Receipt(String)
Receipt reference
Manual
Manual entry with no source document
Implementations§
Trait Implementations§
Source§impl Clone for DocumentRef
impl Clone for DocumentRef
Source§fn clone(&self) -> DocumentRef
fn clone(&self) -> DocumentRef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DocumentRef
impl Debug for DocumentRef
Source§impl<'de> Deserialize<'de> for DocumentRef
impl<'de> Deserialize<'de> for DocumentRef
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
Source§impl PartialEq for DocumentRef
impl PartialEq for DocumentRef
Source§impl Serialize for DocumentRef
impl Serialize for DocumentRef
impl StructuralPartialEq for DocumentRef
Auto Trait Implementations§
impl Freeze for DocumentRef
impl RefUnwindSafe for DocumentRef
impl Send for DocumentRef
impl Sync for DocumentRef
impl Unpin for DocumentRef
impl UnsafeUnpin for DocumentRef
impl UnwindSafe for DocumentRef
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