pub struct CreateLightningInvoiceRequest {
pub amount: Option<String>,
pub description: Option<String>,
pub description_hash: Option<String>,
pub expiry: Option<Box<TimeSpanSeconds>>,
pub private_route_hints: Option<bool>,
}Fields§
§amount: Option<String>Amount wrapped in a string, represented in a millistatoshi string. (1000 millisatoshi = 1 satoshi)
description: Option<String>Description of the invoice in the BOLT11
description_hash: Option<String>Description hash of the invoice in the BOLT11
expiry: Option<Box<TimeSpanSeconds>>Expiration time in seconds
private_route_hints: Option<bool>True if the invoice should include private route hints
Implementations§
Trait Implementations§
Source§impl Clone for CreateLightningInvoiceRequest
impl Clone for CreateLightningInvoiceRequest
Source§fn clone(&self) -> CreateLightningInvoiceRequest
fn clone(&self) -> CreateLightningInvoiceRequest
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 Default for CreateLightningInvoiceRequest
impl Default for CreateLightningInvoiceRequest
Source§fn default() -> CreateLightningInvoiceRequest
fn default() -> CreateLightningInvoiceRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateLightningInvoiceRequest
impl<'de> Deserialize<'de> for CreateLightningInvoiceRequest
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 PartialEq for CreateLightningInvoiceRequest
impl PartialEq for CreateLightningInvoiceRequest
Source§fn eq(&self, other: &CreateLightningInvoiceRequest) -> bool
fn eq(&self, other: &CreateLightningInvoiceRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateLightningInvoiceRequest
Auto Trait Implementations§
impl Freeze for CreateLightningInvoiceRequest
impl RefUnwindSafe for CreateLightningInvoiceRequest
impl Send for CreateLightningInvoiceRequest
impl Sync for CreateLightningInvoiceRequest
impl Unpin for CreateLightningInvoiceRequest
impl UnwindSafe for CreateLightningInvoiceRequest
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