pub enum IncomeSource {
Staking,
Mining,
Airdrop,
Interest,
Other,
}Expand description
The kind of ordinary-income event.
Variants§
Staking
Staking rewards.
Mining
Mining rewards.
Airdrop
Airdropped tokens.
Interest
Lending/interest income.
Other
Any other ordinary-income receipt.
Trait Implementations§
Source§impl Clone for IncomeSource
impl Clone for IncomeSource
Source§fn clone(&self) -> IncomeSource
fn clone(&self) -> IncomeSource
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 moreimpl Copy for IncomeSource
Source§impl Debug for IncomeSource
impl Debug for IncomeSource
Source§impl<'de> Deserialize<'de> for IncomeSource
impl<'de> Deserialize<'de> for IncomeSource
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 Eq for IncomeSource
Source§impl PartialEq for IncomeSource
impl PartialEq for IncomeSource
Source§fn eq(&self, other: &IncomeSource) -> bool
fn eq(&self, other: &IncomeSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IncomeSource
impl Serialize for IncomeSource
impl StructuralPartialEq for IncomeSource
Auto Trait Implementations§
impl Freeze for IncomeSource
impl RefUnwindSafe for IncomeSource
impl Send for IncomeSource
impl Sync for IncomeSource
impl Unpin for IncomeSource
impl UnsafeUnpin for IncomeSource
impl UnwindSafe for IncomeSource
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