pub struct MaxAmountPolicy(pub u128);Expand description
Keeps only candidates whose amount is at most the configured bound.
Tuple Fields§
§0: u128Trait Implementations§
Source§impl Clone for MaxAmountPolicy
impl Clone for MaxAmountPolicy
Source§fn clone(&self) -> MaxAmountPolicy
fn clone(&self) -> MaxAmountPolicy
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 MaxAmountPolicy
Source§impl Debug for MaxAmountPolicy
impl Debug for MaxAmountPolicy
Source§impl PaymentPolicy for MaxAmountPolicy
impl PaymentPolicy for MaxAmountPolicy
Source§fn apply<'a>(
&self,
candidates: Vec<&'a PaymentCandidate>,
) -> Vec<&'a PaymentCandidate>
fn apply<'a>( &self, candidates: Vec<&'a PaymentCandidate>, ) -> Vec<&'a PaymentCandidate>
Returns the subset of candidates that pass this policy.
Auto Trait Implementations§
impl Freeze for MaxAmountPolicy
impl RefUnwindSafe for MaxAmountPolicy
impl Send for MaxAmountPolicy
impl Sync for MaxAmountPolicy
impl Unpin for MaxAmountPolicy
impl UnsafeUnpin for MaxAmountPolicy
impl UnwindSafe for MaxAmountPolicy
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