pub struct PayInvoicePreflightResponse {
pub amount: Amount,
pub fees: Amount,
pub route: LxRoute,
pub ldk_route: Vec<u8>,
}Fields§
§amount: AmountThe total amount to-be-paid for the pre-flighted Invoice,
excluding the fees.
This value may be different from the value originally requested if
we had to reach htlc_minimum_msat for some intermediate hops.
fees: AmountThe total amount of fees to-be-paid for the pre-flighted Invoice.
route: LxRouteThe route used in the preflight, to be used for informational purposes.
See ldk_route for how to pay the invoice along this route.
ldk_route: Vec<u8>A precomputed route that the caller should pass into
PayInvoiceRequest to ensure that:
- The preflighted fee that the user sees is actually what they pay
pay_invoicedoesn’t need to recompute the route, saving time and compute.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PayInvoicePreflightResponse
impl<'de> Deserialize<'de> for PayInvoicePreflightResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PayInvoicePreflightResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PayInvoicePreflightResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PayInvoicePreflightResponse
impl Serialize for PayInvoicePreflightResponse
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 PayInvoicePreflightResponse
impl RefUnwindSafe for PayInvoicePreflightResponse
impl Send for PayInvoicePreflightResponse
impl Sync for PayInvoicePreflightResponse
impl Unpin for PayInvoicePreflightResponse
impl UnsafeUnpin for PayInvoicePreflightResponse
impl UnwindSafe for PayInvoicePreflightResponse
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