pub struct AssetSpec {
pub id: String,
pub description: String,
pub cost: String,
pub salvage: String,
pub life_months: u32,
pub in_service: String,
pub method: String,
pub cost_account: String,
pub accumulated_account: String,
pub expense_account: String,
pub acquired_by: Option<usize>,
pub basis: Option<BasisSpec>,
}Expand description
A fixed asset registered before the first event (B-15).
Fields§
§id: StringIts name in this example.
description: StringWhat it is.
cost: StringIts cost, an exact decimal string.
salvage: StringIts salvage value.
life_months: u32Its useful life in months, above zero.
in_service: StringThe day depreciation starts, YYYY-MM-DD.
method: Stringstraight_line, the one method the books have.
cost_account: StringThe cost account.
accumulated_account: StringThe accumulated depreciation account.
expense_account: StringThe depreciation expense account.
acquired_by: Option<usize>The event whose entry put it on the books (B-15 rule 7).
basis: Option<BasisSpec>How the company got it and the facts its tax figures follow from (B-25).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AssetSpec
impl<'de> Deserialize<'de> for AssetSpec
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 StructuralPartialEq for AssetSpec
Auto Trait Implementations§
impl Freeze for AssetSpec
impl RefUnwindSafe for AssetSpec
impl Send for AssetSpec
impl Sync for AssetSpec
impl Unpin for AssetSpec
impl UnsafeUnpin for AssetSpec
impl UnwindSafe for AssetSpec
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