pub struct PayOfferRequest {
pub cid: ClientPaymentId,
pub offer: Offer,
pub amount: Amount,
pub note: Option<BoundedString>,
pub payer_note: Option<BoundedString>,
}Fields§
§cid: ClientPaymentIdThe user-provided idempotency id for this payment.
offer: OfferThe offer we want to pay.
amount: AmountSpecifies the amount we will pay. If the offer specifies a minimum
amount, amount should satisfy that minimum.
note: Option<BoundedString>An optional personal note for this payment, useful if the receiver-provided description is insufficient.
payer_note: Option<BoundedString>An optional note included in the BOLT12 invoice request and visible to the recipient.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PayOfferRequest
impl<'de> Deserialize<'de> for PayOfferRequest
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
Auto Trait Implementations§
impl Freeze for PayOfferRequest
impl RefUnwindSafe for PayOfferRequest
impl Send for PayOfferRequest
impl Sync for PayOfferRequest
impl Unpin for PayOfferRequest
impl UnsafeUnpin for PayOfferRequest
impl UnwindSafe for PayOfferRequest
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