pub struct ScheduleSpec {
pub id: String,
pub kind: String,
pub description: String,
pub total: String,
pub start: String,
pub months: u32,
pub convention: String,
pub balance_account: String,
pub pl_account: String,
}Expand description
A prepaid expense or deferred revenue recognized over its months
(B-16), in setup.schedules or registered by an event.
Fields§
§id: StringIts name in this example.
kind: Stringprepaid_expense or deferred_revenue.
description: StringWhat it is.
total: StringThe whole amount, an exact decimal string.
start: StringThe day it starts, YYYY-MM-DD.
months: u32Its months, above zero.
convention: Stringdaily or monthly_even.
balance_account: StringThe balance-sheet account it sits in.
pl_account: StringThe profit-and-loss account it recognizes to.
Trait Implementations§
Source§impl Clone for ScheduleSpec
impl Clone for ScheduleSpec
Source§fn clone(&self) -> ScheduleSpec
fn clone(&self) -> ScheduleSpec
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 moreSource§impl Debug for ScheduleSpec
impl Debug for ScheduleSpec
Source§impl<'de> Deserialize<'de> for ScheduleSpec
impl<'de> Deserialize<'de> for ScheduleSpec
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 ScheduleSpec
impl PartialEq for ScheduleSpec
impl StructuralPartialEq for ScheduleSpec
Auto Trait Implementations§
impl Freeze for ScheduleSpec
impl RefUnwindSafe for ScheduleSpec
impl Send for ScheduleSpec
impl Sync for ScheduleSpec
impl Unpin for ScheduleSpec
impl UnsafeUnpin for ScheduleSpec
impl UnwindSafe for ScheduleSpec
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