pub enum InvreqResponseInstructions {
SendInvoice(VerifiedInvoiceRequest),
SendStaticInvoice {
recipient_id: Vec<u8>,
invoice_slot: u16,
invoice_request: InvoiceRequest,
},
}Expand description
Instructions for how to respond to an InvoiceRequest.
Variants§
SendInvoice(VerifiedInvoiceRequest)
We are the recipient of this payment, and a Bolt12Invoice should be sent in response to
the invoice request since it is now verified.
SendStaticInvoice
We are a static invoice server and should respond to this invoice request by retrieving the
StaticInvoice corresponding to the recipient_id and invoice_slot and calling
OffersMessageFlow::enqueue_static_invoice.
Fields
§
recipient_id: Vec<u8>An identifier for the async recipient for whom we are serving StaticInvoices.
§
invoice_request: InvoiceRequestThe invoice request that should be forwarded to the async recipient in case the
recipient is online to respond. Should be forwarded by calling
OffersMessageFlow::enqueue_invoice_request_to_forward.
Auto Trait Implementations§
impl Freeze for InvreqResponseInstructions
impl RefUnwindSafe for InvreqResponseInstructions
impl Send for InvreqResponseInstructions
impl Sync for InvreqResponseInstructions
impl Unpin for InvreqResponseInstructions
impl UnwindSafe for InvreqResponseInstructions
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