pub struct MintQuoteBolt12Response<Q> {
pub quote: Q,
pub request: String,
pub amount: Option<Amount>,
pub unit: CurrencyUnit,
pub expiry: Option<u64>,
pub pubkey: PublicKey,
pub amount_paid: Amount,
pub amount_issued: Amount,
}
Expand description
Mint quote response [NUT-24]
Fields§
§quote: Q
Quote Id
request: String
Payment request to fulfil
amount: Option<Amount>
Amount
unit: CurrencyUnit
Unit wallet would like to pay with
expiry: Option<u64>
Unix timestamp until the quote is valid
pubkey: PublicKey
Pubkey
amount_paid: Amount
Amount that has been paid
amount_issued: Amount
Amount that has been issued
Implementations§
Source§impl<Q> MintQuoteBolt12Response<Q>where
Q: ToString,
impl<Q> MintQuoteBolt12Response<Q>where
Q: ToString,
Sourcepub fn to_string_id(&self) -> MintQuoteBolt12Response<String>
pub fn to_string_id(&self) -> MintQuoteBolt12Response<String>
Convert the MintQuote with a quote type Q to a String
Trait Implementations§
Source§impl<Q> Clone for MintQuoteBolt12Response<Q>where
Q: Clone,
impl<Q> Clone for MintQuoteBolt12Response<Q>where
Q: Clone,
Source§fn clone(&self) -> MintQuoteBolt12Response<Q>
fn clone(&self) -> MintQuoteBolt12Response<Q>
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<Q> Debug for MintQuoteBolt12Response<Q>where
Q: Debug,
impl<Q> Debug for MintQuoteBolt12Response<Q>where
Q: Debug,
Source§impl<'de, Q> Deserialize<'de> for MintQuoteBolt12Response<Q>where
Q: Serialize + for<'a> Deserialize<'a>,
impl<'de, Q> Deserialize<'de> for MintQuoteBolt12Response<Q>where
Q: Serialize + for<'a> Deserialize<'a>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MintQuoteBolt12Response<Q>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MintQuoteBolt12Response<Q>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> From<MintQuoteBolt12Response<T>> for NotificationPayload<T>
impl<T> From<MintQuoteBolt12Response<T>> for NotificationPayload<T>
Source§fn from(mint_quote: MintQuoteBolt12Response<T>) -> NotificationPayload<T>
fn from(mint_quote: MintQuoteBolt12Response<T>) -> NotificationPayload<T>
Converts to this type from the input type.
Source§impl From<MintQuoteBolt12Response<Uuid>> for MintQuoteBolt12Response<String>
impl From<MintQuoteBolt12Response<Uuid>> for MintQuoteBolt12Response<String>
Source§fn from(value: MintQuoteBolt12Response<Uuid>) -> MintQuoteBolt12Response<String>
fn from(value: MintQuoteBolt12Response<Uuid>) -> MintQuoteBolt12Response<String>
Converts to this type from the input type.
Source§impl<Q> Hash for MintQuoteBolt12Response<Q>where
Q: Hash,
impl<Q> Hash for MintQuoteBolt12Response<Q>where
Q: Hash,
Source§impl<Q> PartialEq for MintQuoteBolt12Response<Q>where
Q: PartialEq,
impl<Q> PartialEq for MintQuoteBolt12Response<Q>where
Q: PartialEq,
Source§impl<Q> Serialize for MintQuoteBolt12Response<Q>where
Q: Serialize + for<'a> Deserialize<'a>,
impl<Q> Serialize for MintQuoteBolt12Response<Q>where
Q: Serialize + for<'a> Deserialize<'a>,
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<Q> Eq for MintQuoteBolt12Response<Q>where
Q: Eq,
impl<Q> StructuralPartialEq for MintQuoteBolt12Response<Q>
Auto Trait Implementations§
impl<Q> Freeze for MintQuoteBolt12Response<Q>where
Q: Freeze,
impl<Q> RefUnwindSafe for MintQuoteBolt12Response<Q>where
Q: RefUnwindSafe,
impl<Q> Send for MintQuoteBolt12Response<Q>where
Q: Send,
impl<Q> Sync for MintQuoteBolt12Response<Q>where
Q: Sync,
impl<Q> Unpin for MintQuoteBolt12Response<Q>where
Q: Unpin,
impl<Q> UnwindSafe for MintQuoteBolt12Response<Q>where
Q: UnwindSafe,
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