pub struct MeltQuoteOnchainFeeOption {
pub fee_index: u32,
pub fee_reserve: Amount,
pub estimated_blocks: u32,
}Expand description
Fee option for an onchain melt quote.
Each item in an onchain melt quote’s fee_options represents one
available fee reserve and confirmation estimate for the same payment. The wallet
selects one option when executing the quote by echoing its
fee_index value in the melt request.
The mint enforces these NUT rules on the fee_options list as a whole:
- MUST return at least one item.
- MUST NOT contain two items with the same
fee_index. - The list is fixed for the lifetime of the quote.
Fields§
§fee_index: u32Server-assigned identifier the wallet echoes back to select this option
fee_reserve: AmountMaximum onchain transaction fee the mint may charge for this option
estimated_blocks: u32Estimated number of blocks until confirmation
Trait Implementations§
Source§impl Clone for MeltQuoteOnchainFeeOption
impl Clone for MeltQuoteOnchainFeeOption
Source§fn clone(&self) -> MeltQuoteOnchainFeeOption
fn clone(&self) -> MeltQuoteOnchainFeeOption
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 MeltQuoteOnchainFeeOption
Source§impl Debug for MeltQuoteOnchainFeeOption
impl Debug for MeltQuoteOnchainFeeOption
Source§impl<'de> Deserialize<'de> for MeltQuoteOnchainFeeOption
impl<'de> Deserialize<'de> for MeltQuoteOnchainFeeOption
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MeltQuoteOnchainFeeOption, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MeltQuoteOnchainFeeOption, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MeltQuoteOnchainFeeOption
Source§impl Hash for MeltQuoteOnchainFeeOption
impl Hash for MeltQuoteOnchainFeeOption
Source§impl PartialEq for MeltQuoteOnchainFeeOption
impl PartialEq for MeltQuoteOnchainFeeOption
Source§fn eq(&self, other: &MeltQuoteOnchainFeeOption) -> bool
fn eq(&self, other: &MeltQuoteOnchainFeeOption) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MeltQuoteOnchainFeeOption
impl Serialize for MeltQuoteOnchainFeeOption
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for MeltQuoteOnchainFeeOption
Auto Trait Implementations§
impl Freeze for MeltQuoteOnchainFeeOption
impl RefUnwindSafe for MeltQuoteOnchainFeeOption
impl Send for MeltQuoteOnchainFeeOption
impl Sync for MeltQuoteOnchainFeeOption
impl Unpin for MeltQuoteOnchainFeeOption
impl UnsafeUnpin for MeltQuoteOnchainFeeOption
impl UnwindSafe for MeltQuoteOnchainFeeOption
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