pub enum PaymentWithConfig {
AttachedCycles,
CallerPaysIcrc2Cycles,
PatronPaysIcrc2Cycles(PatronPaysIcrc2Cycles),
CallerPaysIcrc2Tokens(CallerPaysIcrc2Tokens),
PatronPaysIcrc2Tokens(PatronPaysIcrc2Tokens),
}Expand description
A user’s requested payment type paired with a vendor’s configuration.
Variants§
AttachedCycles
CallerPaysIcrc2Cycles
PatronPaysIcrc2Cycles(PatronPaysIcrc2Cycles)
CallerPaysIcrc2Tokens(CallerPaysIcrc2Tokens)
PatronPaysIcrc2Tokens(PatronPaysIcrc2Tokens)
Trait Implementations§
Source§impl CandidType for PaymentWithConfig
impl CandidType for PaymentWithConfig
Source§impl Clone for PaymentWithConfig
impl Clone for PaymentWithConfig
Source§fn clone(&self) -> PaymentWithConfig
fn clone(&self) -> PaymentWithConfig
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 PaymentWithConfig
impl Debug for PaymentWithConfig
Source§impl<'de> Deserialize<'de> for PaymentWithConfig
impl<'de> Deserialize<'de> for PaymentWithConfig
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 PaymentWithConfig
impl PartialEq for PaymentWithConfig
impl Eq for PaymentWithConfig
impl StructuralPartialEq for PaymentWithConfig
Auto Trait Implementations§
impl Freeze for PaymentWithConfig
impl RefUnwindSafe for PaymentWithConfig
impl Send for PaymentWithConfig
impl Sync for PaymentWithConfig
impl Unpin for PaymentWithConfig
impl UnwindSafe for PaymentWithConfig
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