pub struct ServeStaticInvoice {
pub invoice: StaticInvoice,
pub forward_invoice_request_path: BlindedMessagePath,
}Expand description
A request from an async recipient to a static invoice server that a StaticInvoice be
provided in response to InvoiceRequests from payers.
Fields§
§invoice: StaticInvoiceThe invoice that should be served by the static invoice server. Once this invoice has been
persisted, the Responder accompanying this message should be used to send
StaticInvoicePersisted to the recipient to confirm that the offer corresponding to the
invoice is ready to receive async payments.
forward_invoice_request_path: BlindedMessagePathIf a static invoice server receives an InvoiceRequest for a StaticInvoice, they should
also forward the InvoiceRequest to the async recipient so they can respond with a fresh
Bolt12Invoice if the recipient is online at the time. Use this path to forward the
InvoiceRequest to the async recipient.
This path’s BlindedMessagePath::introduction_node MUST be set to the static invoice server
node or one of its peers. This is because, for DoS protection, invoice requests forwarded over
this path are treated by the server node like any other onion message forward and the server
will not directly connect to the introduction node if they are not already peers.
Trait Implementations§
Source§impl Clone for ServeStaticInvoice
impl Clone for ServeStaticInvoice
Source§fn clone(&self) -> ServeStaticInvoice
fn clone(&self) -> ServeStaticInvoice
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ServeStaticInvoice
impl Debug for ServeStaticInvoice
Source§impl Readable for ServeStaticInvoice
impl Readable for ServeStaticInvoice
Source§impl Writeable for ServeStaticInvoice
impl Writeable for ServeStaticInvoice
Auto Trait Implementations§
impl Freeze for ServeStaticInvoice
impl RefUnwindSafe for ServeStaticInvoice
impl Send for ServeStaticInvoice
impl Sync for ServeStaticInvoice
impl Unpin for ServeStaticInvoice
impl UnwindSafe for ServeStaticInvoice
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> LengthReadable for Twhere
T: Readable,
impl<T> LengthReadable for Twhere
T: Readable,
Source§fn read_from_fixed_length_buffer<R>(reader: &mut R) -> Result<T, DecodeError>where
R: LengthLimitedRead,
fn read_from_fixed_length_buffer<R>(reader: &mut R) -> Result<T, DecodeError>where
R: LengthLimitedRead,
Self in from the given LengthLimitedRead.