Struct jormungandr_lib::interfaces::RewardConstraints
source · pub struct RewardConstraints {
pub reward_drawing_limit_max: Option<Ratio>,
pub pool_participation_capping: Option<PoolParticipationCapping>,
}
Fields§
§reward_drawing_limit_max: Option<Ratio>
§pool_participation_capping: Option<PoolParticipationCapping>
Implementations§
source§impl RewardConstraints
impl RewardConstraints
pub fn is_none(&self) -> bool
pub fn set_reward_drawing_limit_max(&mut self, limit: Option<Ratio>)
pub fn set_pool_participation_capping( &mut self, setting: Option<(NonZeroU32, NonZeroU32)> )
Trait Implementations§
source§impl Clone for RewardConstraints
impl Clone for RewardConstraints
source§fn clone(&self) -> RewardConstraints
fn clone(&self) -> RewardConstraints
Returns a copy 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 RewardConstraints
impl Debug for RewardConstraints
source§impl Default for RewardConstraints
impl Default for RewardConstraints
source§fn default() -> RewardConstraints
fn default() -> RewardConstraints
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RewardConstraints
impl<'de> Deserialize<'de> for RewardConstraints
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<RewardConstraints> for RewardConstraints
impl PartialEq<RewardConstraints> for RewardConstraints
source§fn eq(&self, other: &RewardConstraints) -> bool
fn eq(&self, other: &RewardConstraints) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RewardConstraints
impl Serialize for RewardConstraints
impl Eq for RewardConstraints
impl StructuralEq for RewardConstraints
impl StructuralPartialEq for RewardConstraints
Auto Trait Implementations§
impl RefUnwindSafe for RewardConstraints
impl Send for RewardConstraints
impl Sync for RewardConstraints
impl Unpin for RewardConstraints
impl UnwindSafe for RewardConstraints
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