pub enum ValuationMethod {
StandardCost,
MovingAverage,
Fifo,
Lifo,
SpecificIdentification,
}Expand description
Inventory valuation method.
Variants§
StandardCost
Standard cost valuation
MovingAverage
Moving average price
Fifo
First-in, first-out
Lifo
Last-in, first-out (where permitted)
SpecificIdentification
Specific identification
Trait Implementations§
Source§impl Clone for ValuationMethod
impl Clone for ValuationMethod
Source§fn clone(&self) -> ValuationMethod
fn clone(&self) -> ValuationMethod
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 ValuationMethod
impl Debug for ValuationMethod
Source§impl Default for ValuationMethod
impl Default for ValuationMethod
Source§fn default() -> ValuationMethod
fn default() -> ValuationMethod
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ValuationMethod
impl<'de> Deserialize<'de> for ValuationMethod
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 Hash for ValuationMethod
impl Hash for ValuationMethod
Source§impl PartialEq for ValuationMethod
impl PartialEq for ValuationMethod
Source§impl Serialize for ValuationMethod
impl Serialize for ValuationMethod
impl Copy for ValuationMethod
impl Eq for ValuationMethod
impl StructuralPartialEq for ValuationMethod
Auto Trait Implementations§
impl Freeze for ValuationMethod
impl RefUnwindSafe for ValuationMethod
impl Send for ValuationMethod
impl Sync for ValuationMethod
impl Unpin for ValuationMethod
impl UnwindSafe for ValuationMethod
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.