pub struct PayOfferPreflightResponse {
pub amount: Amount,
pub fees: Amount,
pub route: LxRoute,
}Fields§
§amount: AmountThe total amount to-be-paid for the pre-flighted Offer,
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 Offer.
Since we only approximate the route atm, we likely underestimate the actual fee.
route: LxRouteThe route this offer will be paid over.
Because we don’t yet fetch the actual BOLT 12 invoice during preflight, this route is only an approximation of the final route (we can only route to the last public node before the offer’s blinded path begins).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PayOfferPreflightResponse
impl<'de> Deserialize<'de> for PayOfferPreflightResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PayOfferPreflightResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PayOfferPreflightResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PayOfferPreflightResponse
impl Serialize for PayOfferPreflightResponse
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 PayOfferPreflightResponse
impl RefUnwindSafe for PayOfferPreflightResponse
impl Send for PayOfferPreflightResponse
impl Sync for PayOfferPreflightResponse
impl Unpin for PayOfferPreflightResponse
impl UnsafeUnpin for PayOfferPreflightResponse
impl UnwindSafe for PayOfferPreflightResponse
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