pub struct MintQuoteOnchainResponse<Q> {
pub quote: Q,
pub request: String,
pub unit: CurrencyUnit,
pub expiry: Option<u64>,
pub pubkey: PublicKey,
pub amount_paid: Amount,
pub amount_issued: Amount,
}Expand description
Mint quote onchain response
Response containing the onchain quote details.
Unknown fields are accepted to preserve forward compatibility when mints add optional onchain extensions.
Fields§
§quote: QQuote Id
request: StringBitcoin address to send funds to
unit: CurrencyUnitUnit
expiry: Option<u64>Unix timestamp until the quote is valid
pubkey: PublicKeyNUT-20 Pubkey from the request
amount_paid: AmountTotal confirmed amount paid to the request
amount_issued: AmountAmount of ecash that has been issued for the given mint quote
Implementations§
Source§impl<Q> MintQuoteOnchainResponse<Q>where
Q: ToString,
impl<Q> MintQuoteOnchainResponse<Q>where
Q: ToString,
Sourcepub fn to_string_id(&self) -> MintQuoteOnchainResponse<String>
pub fn to_string_id(&self) -> MintQuoteOnchainResponse<String>
Convert the MintQuoteOnchainResponse with a quote type Q to a String
Trait Implementations§
Source§impl<Q> Clone for MintQuoteOnchainResponse<Q>where
Q: Clone,
impl<Q> Clone for MintQuoteOnchainResponse<Q>where
Q: Clone,
Source§fn clone(&self) -> MintQuoteOnchainResponse<Q>
fn clone(&self) -> MintQuoteOnchainResponse<Q>
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 moreSource§impl<Q> Debug for MintQuoteOnchainResponse<Q>where
Q: Debug,
impl<Q> Debug for MintQuoteOnchainResponse<Q>where
Q: Debug,
Source§impl<'de, Q> Deserialize<'de> for MintQuoteOnchainResponse<Q>where
Q: Serialize + DeserializeOwned,
impl<'de, Q> Deserialize<'de> for MintQuoteOnchainResponse<Q>where
Q: Serialize + DeserializeOwned,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MintQuoteOnchainResponse<Q>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MintQuoteOnchainResponse<Q>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<Q> Eq for MintQuoteOnchainResponse<Q>where
Q: Eq,
Source§impl From<MintQuoteOnchainResponse<QuoteId>> for MintQuoteOnchainResponse<String>
Available on crate feature mint only.
impl From<MintQuoteOnchainResponse<QuoteId>> for MintQuoteOnchainResponse<String>
Available on crate feature
mint only.Source§fn from(
value: MintQuoteOnchainResponse<QuoteId>,
) -> MintQuoteOnchainResponse<String>
fn from( value: MintQuoteOnchainResponse<QuoteId>, ) -> MintQuoteOnchainResponse<String>
Converts to this type from the input type.
Source§impl<Q> PartialEq for MintQuoteOnchainResponse<Q>where
Q: PartialEq,
impl<Q> PartialEq for MintQuoteOnchainResponse<Q>where
Q: PartialEq,
Source§impl<Q> Serialize for MintQuoteOnchainResponse<Q>where
Q: Serialize + DeserializeOwned,
impl<Q> Serialize for MintQuoteOnchainResponse<Q>where
Q: Serialize + DeserializeOwned,
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> StructuralPartialEq for MintQuoteOnchainResponse<Q>where
Q: PartialEq,
Auto Trait Implementations§
impl<Q> Freeze for MintQuoteOnchainResponse<Q>where
Q: Freeze,
impl<Q> RefUnwindSafe for MintQuoteOnchainResponse<Q>where
Q: RefUnwindSafe,
impl<Q> Send for MintQuoteOnchainResponse<Q>where
Q: Send,
impl<Q> Sync for MintQuoteOnchainResponse<Q>where
Q: Sync,
impl<Q> Unpin for MintQuoteOnchainResponse<Q>where
Q: Unpin,
impl<Q> UnsafeUnpin for MintQuoteOnchainResponse<Q>where
Q: UnsafeUnpin,
impl<Q> UnwindSafe for MintQuoteOnchainResponse<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