pub enum InternalizeOutput {
WalletPayment {
output_index: u32,
payment: Payment,
},
BasketInsertion {
output_index: u32,
insertion: BasketInsertion,
},
}Expand description
How to process a transaction output – as payment or basket insertion.
An enum with two variants, encoding the protocol in the variant itself. This makes impossible states unrepresentable: a WalletPayment always has a Payment, and a BasketInsertion always has a BasketInsertion.
Variants§
Trait Implementations§
Source§impl Clone for InternalizeOutput
impl Clone for InternalizeOutput
Source§fn clone(&self) -> InternalizeOutput
fn clone(&self) -> InternalizeOutput
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 moreAuto Trait Implementations§
impl Freeze for InternalizeOutput
impl !RefUnwindSafe for InternalizeOutput
impl Send for InternalizeOutput
impl Sync for InternalizeOutput
impl Unpin for InternalizeOutput
impl UnsafeUnpin for InternalizeOutput
impl !UnwindSafe for InternalizeOutput
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