pub struct CreateInvoiceRequest {
pub expiration_secs: Option<u32>,
pub amount: Option<Amount>,
pub description: Option<String>,
pub payer_note: Option<String>,
}Expand description
A request to create a BOLT 11 invoice.
Fields§
§expiration_secs: Option<u32>The expiration, in seconds, to encode into the invoice. If no duration is provided, the expiration time defaults to 86400 (1 day).
amount: Option<Amount>Optionally include an amount, in sats, to encode into the invoice. If no amount is provided, the sender will specify how much to pay.
description: Option<String>The description to be encoded into the invoice. The sender will see this description when they scan the invoice.
payer_note: Option<String>An optional note received from the payer out-of-band via LNURL-pay that is stored with this inbound payment. If provided, it must be non-empty and no longer than 200 chars / 512 UTF-8 bytes.
Trait Implementations§
Source§impl Default for CreateInvoiceRequest
impl Default for CreateInvoiceRequest
Source§fn default() -> CreateInvoiceRequest
fn default() -> CreateInvoiceRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateInvoiceRequest
impl<'de> Deserialize<'de> for CreateInvoiceRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CreateInvoiceRequest
impl Serialize for CreateInvoiceRequest
Auto Trait Implementations§
impl Freeze for CreateInvoiceRequest
impl RefUnwindSafe for CreateInvoiceRequest
impl Send for CreateInvoiceRequest
impl Sync for CreateInvoiceRequest
impl Unpin for CreateInvoiceRequest
impl UnwindSafe for CreateInvoiceRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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