pub struct DepreciationSchedule {
pub asset_number: String,
pub description: String,
pub acquisition_cost: Decimal,
pub salvage_value: Decimal,
pub method: DepreciationMethod,
pub useful_life_months: u32,
pub start_date: NaiveDate,
pub annual_entries: Vec<AnnualDepreciationEntry>,
}Expand description
Depreciation schedule (annual view).
Fields§
§asset_number: StringAsset number.
description: StringAsset description.
acquisition_cost: DecimalAcquisition cost.
salvage_value: DecimalSalvage value.
method: DepreciationMethodDepreciation method.
useful_life_months: u32Useful life in months.
start_date: NaiveDateStart date.
annual_entries: Vec<AnnualDepreciationEntry>Annual schedule.
Implementations§
Source§impl DepreciationSchedule
impl DepreciationSchedule
Sourcepub fn for_asset(
asset: &FixedAssetRecord,
area_type: DepreciationAreaType,
) -> Option<Self>
pub fn for_asset( asset: &FixedAssetRecord, area_type: DepreciationAreaType, ) -> Option<Self>
Creates a schedule for an asset.
Trait Implementations§
Source§impl Clone for DepreciationSchedule
impl Clone for DepreciationSchedule
Source§fn clone(&self) -> DepreciationSchedule
fn clone(&self) -> DepreciationSchedule
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 DepreciationSchedule
impl Debug for DepreciationSchedule
Source§impl<'de> Deserialize<'de> for DepreciationSchedule
impl<'de> Deserialize<'de> for DepreciationSchedule
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
Auto Trait Implementations§
impl Freeze for DepreciationSchedule
impl RefUnwindSafe for DepreciationSchedule
impl Send for DepreciationSchedule
impl Sync for DepreciationSchedule
impl Unpin for DepreciationSchedule
impl UnsafeUnpin for DepreciationSchedule
impl UnwindSafe for DepreciationSchedule
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