pub enum TaxMethod {
Fifo,
Lifo,
SpecificLot(String),
MinTax,
AverageCost,
}Expand description
Method used to select which lots to dispose when selling shares.
Variants§
Fifo
First in, first out — oldest lots disposed first.
Lifo
Last in, first out — newest lots disposed first.
SpecificLot(String)
Dispose a specific lot by its lot_id.
MinTax
Minimize tax liability: sell loss lots (largest loss first) before gain lots.
AverageCost
Use the average cost basis across all lots for the symbol.
Trait Implementations§
impl StructuralPartialEq for TaxMethod
Auto Trait Implementations§
impl Freeze for TaxMethod
impl RefUnwindSafe for TaxMethod
impl Send for TaxMethod
impl Sync for TaxMethod
impl Unpin for TaxMethod
impl UnsafeUnpin for TaxMethod
impl UnwindSafe for TaxMethod
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