pub struct Bolt11IncomingPaymentOptions {
pub description: Option<String>,
pub amount: Amount,
pub unix_expiry: Option<u64>,
}
Expand description
Options for creating a BOLT11 incoming payment request
Fields§
§description: Option<String>
Optional description for the payment request
amount: Amount
Amount for the payment request in sats
unix_expiry: Option<u64>
Optional expiry time as Unix timestamp in seconds
Trait Implementations§
Source§impl Clone for Bolt11IncomingPaymentOptions
impl Clone for Bolt11IncomingPaymentOptions
Source§fn clone(&self) -> Bolt11IncomingPaymentOptions
fn clone(&self) -> Bolt11IncomingPaymentOptions
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 Debug for Bolt11IncomingPaymentOptions
impl Debug for Bolt11IncomingPaymentOptions
Source§impl Default for Bolt11IncomingPaymentOptions
impl Default for Bolt11IncomingPaymentOptions
Source§fn default() -> Bolt11IncomingPaymentOptions
fn default() -> Bolt11IncomingPaymentOptions
Returns the “default value” for a type. Read more
Source§impl Hash for Bolt11IncomingPaymentOptions
impl Hash for Bolt11IncomingPaymentOptions
Source§impl PartialEq for Bolt11IncomingPaymentOptions
impl PartialEq for Bolt11IncomingPaymentOptions
Source§fn eq(&self, other: &Bolt11IncomingPaymentOptions) -> bool
fn eq(&self, other: &Bolt11IncomingPaymentOptions) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Eq for Bolt11IncomingPaymentOptions
impl StructuralPartialEq for Bolt11IncomingPaymentOptions
Auto Trait Implementations§
impl Freeze for Bolt11IncomingPaymentOptions
impl RefUnwindSafe for Bolt11IncomingPaymentOptions
impl Send for Bolt11IncomingPaymentOptions
impl Sync for Bolt11IncomingPaymentOptions
impl Unpin for Bolt11IncomingPaymentOptions
impl UnwindSafe for Bolt11IncomingPaymentOptions
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