pub struct PayOfferRequest {
pub cid: ClientPaymentId,
pub offer: Offer,
pub amount: Amount,
pub message: Option<BoundedString>,
pub personal_note: Option<BoundedString>,
pub kind: PaymentKind,
}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.
message: Option<BoundedString>An optional BOLT 12 payer_note included with the invoice request and
visible to the recipient.
personal_note: Option<BoundedString>An optional personal note for this payment, useful if the receiver-provided description is insufficient.
kind: PaymentKindThe PaymentKind to label this outbound offer payment with.
kind.rail() must == PaymentRail::Offer (or kind must be unknown),
otherwise the request is rejected.
Defaults to PaymentKind::Offer if not set.
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