pub struct DistributionHistory {
pub period_start: Timestamp,
pub period_end: Timestamp,
pub total_fees: u128,
pub fees_by_asset: HashMap<AssetId, u128>,
pub treasury_share: u128,
pub burn_share: u128,
pub staker_share: u128,
}Expand description
Distribution history entry
Fields§
§period_start: TimestampTime period start
period_end: TimestampTime period end
total_fees: u128Total fees in period
fees_by_asset: HashMap<AssetId, u128>Fees per asset
Treasury share
Burn share
Staker share
Implementations§
Trait Implementations§
Source§impl Clone for DistributionHistory
impl Clone for DistributionHistory
Source§fn clone(&self) -> DistributionHistory
fn clone(&self) -> DistributionHistory
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 moreSource§impl Debug for DistributionHistory
impl Debug for DistributionHistory
Source§impl<'de> Deserialize<'de> for DistributionHistory
impl<'de> Deserialize<'de> for DistributionHistory
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 DistributionHistory
impl RefUnwindSafe for DistributionHistory
impl Send for DistributionHistory
impl Sync for DistributionHistory
impl Unpin for DistributionHistory
impl UnsafeUnpin for DistributionHistory
impl UnwindSafe for DistributionHistory
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