pub struct PayOfferRequest {
pub offer: Offer,
pub amount: Amount,
pub message: Option<String>,
pub personal_note: Option<String>,
}Expand description
A request to pay a BOLT 12 offer over Lightning.
Fields§
§offer: OfferThe offer we want to pay.
amount: AmountThe amount we will pay. If the offer specifies a minimum amount, this value must satisfy that minimum.
message: Option<String>An optional message (sent as a BOLT 12 payer_note) included with the
invoice request and visible to the recipient. If provided, it must be
non-empty and no longer than 200 chars / 512 UTF-8 bytes.
personal_note: Option<String>An optional personal note for this payment. The receiver will not see this note. If provided, it must be non-empty and no longer than 200 chars / 512 UTF-8 bytes.
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 UnwindSafe for PayOfferRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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