Struct SdkCreateInvoiceResponse
pub struct SdkCreateInvoiceResponse {
pub index: PaymentCreatedIndex,
pub invoice: LxInvoice,
pub description: Option<String>,
pub amount: Option<Amount>,
pub created_at: TimestampMs,
pub expires_at: TimestampMs,
pub payment_hash: LxPaymentHash,
pub payment_secret: LxPaymentSecret,
}Expand description
The response to a BOLT 11 invoice request.
Fields§
§index: PaymentCreatedIndexIdentifier for this inbound invoice payment.
invoice: LxInvoiceThe string-encoded BOLT 11 invoice.
description: Option<String>The description encoded in the invoice, if one was provided.
amount: Option<Amount>The amount encoded in the invoice, if there was one.
Returning null means we created an amountless invoice.
created_at: TimestampMsThe invoice creation time, in milliseconds since the UNIX epoch.
expires_at: TimestampMsThe invoice expiration time, in milliseconds since the UNIX epoch.
payment_hash: LxPaymentHashThe hex-encoded payment hash of the invoice.
payment_secret: LxPaymentSecretThe payment secret of the invoice.
Implementations§
§impl SdkCreateInvoiceResponse
impl SdkCreateInvoiceResponse
pub fn new(
index: PaymentCreatedIndex,
invoice: LxInvoice,
) -> SdkCreateInvoiceResponse
pub fn new( index: PaymentCreatedIndex, invoice: LxInvoice, ) -> SdkCreateInvoiceResponse
Quickly create a SdkCreateInvoiceResponse
Trait Implementations§
§impl<'de> Deserialize<'de> for SdkCreateInvoiceResponse
impl<'de> Deserialize<'de> for SdkCreateInvoiceResponse
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SdkCreateInvoiceResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SdkCreateInvoiceResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for SdkCreateInvoiceResponse
impl Serialize for SdkCreateInvoiceResponse
§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
Auto Trait Implementations§
impl Freeze for SdkCreateInvoiceResponse
impl RefUnwindSafe for SdkCreateInvoiceResponse
impl Send for SdkCreateInvoiceResponse
impl Sync for SdkCreateInvoiceResponse
impl Unpin for SdkCreateInvoiceResponse
impl UnwindSafe for SdkCreateInvoiceResponse
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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