pub struct Document {
pub id: DocumentId,
pub kind: DocumentKind,
pub number: Option<String>,
pub date: Date,
pub received: Date,
pub original: Original,
}Expand description
A document: what a booking is based on, as a record of its own. There is no document without its original.
Fields§
§id: DocumentIdIts identity.
kind: DocumentKindWhat kind of document it is.
number: Option<String>Its number as printed on it (for example the invoice number), if it has one.
date: DateThe date it bears (for example the invoice date).
received: DateThe day it was received – which may be earlier than the day it was recorded, e.g. a letter scanned later.
original: OriginalThe file it came as.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Document
impl<'de> Deserialize<'de> for Document
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 Document
impl StructuralPartialEq for Document
Auto Trait Implementations§
impl Freeze for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnsafeUnpin for Document
impl UnwindSafe for Document
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