pub struct MaxAmount(pub U256);Expand description
Selector that only accepts payments up to a maximum amount.
Useful for limiting spending or implementing budget controls.
Tuple Fields§
§0: U256Trait Implementations§
Source§impl PaymentSelector for MaxAmount
impl PaymentSelector for MaxAmount
Source§fn select<'a>(
&self,
candidates: &'a [PaymentCandidate],
) -> Option<&'a PaymentCandidate>
fn select<'a>( &self, candidates: &'a [PaymentCandidate], ) -> Option<&'a PaymentCandidate>
Selects a payment candidate from the available options.
Auto Trait Implementations§
impl Freeze for MaxAmount
impl RefUnwindSafe for MaxAmount
impl Send for MaxAmount
impl Sync for MaxAmount
impl Unpin for MaxAmount
impl UnwindSafe for MaxAmount
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