pub struct MakeInvoiceParams {
pub amount_msat: u64,
pub description: Option<String>,
pub description_hash: Option<String>,
pub expiry_secs: Option<u32>,
pub metadata: Option<Value>,
}Expand description
Parameters for make_invoice command.
Fields§
§amount_msat: u64Amount in millisats.
description: Option<String>Invoice description.
description_hash: Option<String>Invoice description hash (32 bytes hex).
expiry_secs: Option<u32>Invoice expiry in seconds.
metadata: Option<Value>Generic metadata (e.g., zap/boostagram details). Optional and ignored.
Trait Implementations§
Source§impl Clone for MakeInvoiceParams
impl Clone for MakeInvoiceParams
Source§fn clone(&self) -> MakeInvoiceParams
fn clone(&self) -> MakeInvoiceParams
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 MakeInvoiceParams
impl Debug for MakeInvoiceParams
Source§impl<'de> Deserialize<'de> for MakeInvoiceParams
impl<'de> Deserialize<'de> for MakeInvoiceParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MakeInvoiceParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MakeInvoiceParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MakeInvoiceParams
impl PartialEq for MakeInvoiceParams
Source§impl Serialize for MakeInvoiceParams
impl Serialize for MakeInvoiceParams
Source§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
impl StructuralPartialEq for MakeInvoiceParams
Auto Trait Implementations§
impl Freeze for MakeInvoiceParams
impl RefUnwindSafe for MakeInvoiceParams
impl Send for MakeInvoiceParams
impl Sync for MakeInvoiceParams
impl Unpin for MakeInvoiceParams
impl UnsafeUnpin for MakeInvoiceParams
impl UnwindSafe for MakeInvoiceParams
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