pub struct PayOfferRequest {
pub cid: ClientPaymentId,
pub offer: Offer,
pub fallback_amount: Option<Amount>,
pub note: Option<BoundedNote>,
pub payer_note: Option<BoundedNote>,
}Fields§
§cid: ClientPaymentIdThe user-provided idempotency id for this payment.
offer: OfferThe offer we want to pay.
fallback_amount: Option<Amount>Specifies the amount we will pay if the offer to be paid is
amountless. This field must be Some for amountless offers.
note: Option<BoundedNote>An optional personal note for this payment, useful if the receiver-provided description is insufficient.
payer_note: Option<BoundedNote>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<PayOfferRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PayOfferRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PayOfferRequest
impl Serialize for PayOfferRequest
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
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