pub struct SwapOperationData {
pub input_amount: Amount,
pub output_amount: Amount,
pub counter_start: Option<u32>,
pub counter_end: Option<u32>,
pub blinded_messages: Option<Vec<BlindedMessage>>,
}Expand description
Operation-specific data for Swap operations
Fields§
§input_amount: AmountInput amount
output_amount: AmountOutput amount
counter_start: Option<u32>Derivation counter start
counter_end: Option<u32>Derivation counter end
blinded_messages: Option<Vec<BlindedMessage>>Blinded messages for recovery
Stored so that if a crash occurs after the mint accepts the swap, we can use these to query the mint for signatures and reconstruct proofs.
Trait Implementations§
Source§impl Clone for SwapOperationData
impl Clone for SwapOperationData
Source§fn clone(&self) -> SwapOperationData
fn clone(&self) -> SwapOperationData
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 SwapOperationData
impl Debug for SwapOperationData
Source§impl<'de> Deserialize<'de> for SwapOperationData
impl<'de> Deserialize<'de> for SwapOperationData
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 SwapOperationData
impl PartialEq for SwapOperationData
Source§impl Serialize for SwapOperationData
impl Serialize for SwapOperationData
impl Eq for SwapOperationData
impl StructuralPartialEq for SwapOperationData
Auto Trait Implementations§
impl Freeze for SwapOperationData
impl RefUnwindSafe for SwapOperationData
impl Send for SwapOperationData
impl Sync for SwapOperationData
impl Unpin for SwapOperationData
impl UnsafeUnpin for SwapOperationData
impl UnwindSafe for SwapOperationData
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