pub struct Booking {
pub date: Date,
pub text: String,
pub postings: Vec<Posting>,
pub documents: Vec<DocumentId>,
}Expand description
A booking: a business transaction on a date, as postings that balance for every owner in every currency. One booking may concern several owners – an invoice split between a business and its owner’s private books.
Fields§
§date: DateThe date the transaction belongs to.
text: StringWhat it is about.
postings: Vec<Posting>At least two postings.
documents: Vec<DocumentId>The documents it is based on (receipts, invoices, statements); left out of JSON when empty.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Booking
impl<'de> Deserialize<'de> for Booking
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 Booking
impl StructuralPartialEq for Booking
Auto Trait Implementations§
impl Freeze for Booking
impl RefUnwindSafe for Booking
impl Send for Booking
impl Sync for Booking
impl Unpin for Booking
impl UnsafeUnpin for Booking
impl UnwindSafe for Booking
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