pub struct PreflightPayOfferResponse {
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 PreflightPayOfferResponse
impl<'de> Deserialize<'de> for PreflightPayOfferResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PreflightPayOfferResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PreflightPayOfferResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PreflightPayOfferResponse
impl Serialize for PreflightPayOfferResponse
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 PreflightPayOfferResponse
impl RefUnwindSafe for PreflightPayOfferResponse
impl Send for PreflightPayOfferResponse
impl Sync for PreflightPayOfferResponse
impl Unpin for PreflightPayOfferResponse
impl UnsafeUnpin for PreflightPayOfferResponse
impl UnwindSafe for PreflightPayOfferResponse
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