pub struct RewardFeeFraction {
pub numerator: u32,
pub denominator: u32,
}Expand description
The reward fee that is taken by the pool contract.
This represents the percentage of the reward that is taken by the pool contract. The type is a part of the StakingPool interface
The fraction is equal to numerator/denominator, e.g. 3/1000 = 0.3%
Fields§
§numerator: u32The numerator of the fraction.
denominator: u32The denominator of the fraction.
Trait Implementations§
Source§impl Clone for RewardFeeFraction
impl Clone for RewardFeeFraction
Source§fn clone(&self) -> RewardFeeFraction
fn clone(&self) -> RewardFeeFraction
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 RewardFeeFraction
impl Debug for RewardFeeFraction
Source§impl Default for RewardFeeFraction
impl Default for RewardFeeFraction
Source§fn default() -> RewardFeeFraction
fn default() -> RewardFeeFraction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RewardFeeFraction
impl<'de> Deserialize<'de> for RewardFeeFraction
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 PartialEq for RewardFeeFraction
impl PartialEq for RewardFeeFraction
Source§impl Serialize for RewardFeeFraction
impl Serialize for RewardFeeFraction
impl Eq for RewardFeeFraction
impl StructuralPartialEq for RewardFeeFraction
Auto Trait Implementations§
impl Freeze for RewardFeeFraction
impl RefUnwindSafe for RewardFeeFraction
impl Send for RewardFeeFraction
impl Sync for RewardFeeFraction
impl Unpin for RewardFeeFraction
impl UnwindSafe for RewardFeeFraction
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