pub struct MintQuoteCustomRequest {
pub amount: 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: AmountAmount to mint
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
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 MintQuoteCustomRequest
impl Debug for MintQuoteCustomRequest
Source§impl<'de> Deserialize<'de> for MintQuoteCustomRequest
impl<'de> Deserialize<'de> for MintQuoteCustomRequest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MintQuoteCustomRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MintQuoteCustomRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MintQuoteCustomRequest
impl PartialEq for MintQuoteCustomRequest
Source§impl Serialize for MintQuoteCustomRequest
impl Serialize for MintQuoteCustomRequest
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 Eq for MintQuoteCustomRequest
impl StructuralPartialEq for MintQuoteCustomRequest
Auto Trait Implementations§
impl Freeze for MintQuoteCustomRequest
impl RefUnwindSafe for MintQuoteCustomRequest
impl Send for MintQuoteCustomRequest
impl Sync for MintQuoteCustomRequest
impl Unpin for MintQuoteCustomRequest
impl UnsafeUnpin for MintQuoteCustomRequest
impl UnwindSafe for MintQuoteCustomRequest
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