pub struct RewardDistribution {
pub proof_id: Uuid,
pub provider_reward: Points,
pub creator_reward: Points,
pub referrer_rewards: Vec<(Uuid, Points)>,
pub platform_fee: Points,
pub total_distributed: Points,
}Expand description
Reward distribution result.
Fields§
§proof_id: Uuid§provider_reward: Points§creator_reward: Points§referrer_rewards: Vec<(Uuid, Points)>§platform_fee: Points§total_distributed: PointsTrait Implementations§
Source§impl Clone for RewardDistribution
impl Clone for RewardDistribution
Source§fn clone(&self) -> RewardDistribution
fn clone(&self) -> RewardDistribution
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 RewardDistribution
impl Debug for RewardDistribution
Source§impl<'de> Deserialize<'de> for RewardDistribution
impl<'de> Deserialize<'de> for RewardDistribution
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 RewardDistribution
impl RefUnwindSafe for RewardDistribution
impl Send for RewardDistribution
impl Sync for RewardDistribution
impl Unpin for RewardDistribution
impl UnwindSafe for RewardDistribution
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