pub struct MintQuoteCustomRequest {
pub amount: Option<Amount>,
pub unit: CurrencyUnit,
pub description: Option<String>,
pub pubkey: Option<PublicKey>,
pub extra: Value,
}Expand description
Custom payment method mint quote request
This is a generic request type that works for any custom payment method. The method name is provided in the URL path, not in the request body.
The extra field allows payment-method-specific fields to be included
without being nested. When serialized, extra fields merge into the parent JSON.
Fields§
§amount: Option<Amount>Amount to mint
Optional common field. Method-specific NUTs make it required or ignore
it as needed (e.g. NUT-23 requires amount).
unit: CurrencyUnitCurrency unit
description: Option<String>Optional description
pubkey: Option<PublicKey>NUT-19 Pubkey
extra: ValueExtra payment-method-specific fields
These fields are flattened into the JSON representation, allowing custom payment methods to include additional data (e.g., ehash share). This enables proper validation layering: the mint verifies well-defined fields while passing extra through to the payment processor.
Trait Implementations§
Source§impl Clone for MintQuoteCustomRequest
impl Clone for MintQuoteCustomRequest
Source§fn clone(&self) -> MintQuoteCustomRequest
fn clone(&self) -> MintQuoteCustomRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more