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