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