pub struct CrossChainReceiveInfo {
pub quote_id: String,
pub deposit_address: String,
pub deposit_amount: u128,
pub expected_received_amount: u128,
pub destination_asset: String,
pub token_identifier: Option<String>,
pub service_fee_amount: u128,
pub service_fee_asset: Option<String>,
pub service_fee_asset_decimals: Option<u32>,
pub expires_at: u64,
}Expand description
Information about the cross-chain receive quote: what the sender deposits and what the receiver is expected to get.
Fields§
§quote_id: StringThe provider’s id for this receive. The incoming payment carries the same id in its conversion info, so it can be matched to this receive.
deposit_address: StringBare deposit address the sender pays to on the source chain, or the BOLT11 invoice when the sender pays over Lightning.
deposit_amount: u128Amount the sender must deposit, in source-asset base units
(route.decimals, or sats over Lightning). On FeesExcluded this may
differ from the request’s amount because the SDK inflates the deposit
to absorb provider fees. Render this value to the sender.
expected_received_amount: u128Amount the receiver will see, net of provider fees, in destination-asset base units. Sats when receiving BTC, token base units when receiving a Spark token (e.g. USDB), or stablecoin base units when the receiver is on another chain. The final delivered amount may move within the slippage tolerance.
destination_asset: StringSymbol of the asset expected_received_amount is denominated in, as
the provider reports it: "BTC" for sats, a Spark token symbol (e.g.
"USDB"), or the stablecoin when the receiver is on another chain.
token_identifier: Option<String>Spark token identifier when the destination is a Spark token. Absent otherwise.
service_fee_amount: u128Provider-quoted total fee for this receive, including the partner fee
when one is set, in service_fee_asset units.
service_fee_asset: Option<String>Ticker for service_fee_amount. Absent when the fee is denominated
in sats.
service_fee_asset_decimals: Option<u32>Decimals of service_fee_asset, for formatting service_fee_amount.
Unset when the fee is in sats or the provider did not report them.
expires_at: u64Quote expiry as a unix timestamp in seconds.
Trait Implementations§
Source§impl Clone for CrossChainReceiveInfo
impl Clone for CrossChainReceiveInfo
Source§fn clone(&self) -> CrossChainReceiveInfo
fn clone(&self) -> CrossChainReceiveInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CrossChainReceiveInfo
impl Debug for CrossChainReceiveInfo
Source§impl<'de> Deserialize<'de> for CrossChainReceiveInfo
impl<'de> Deserialize<'de> for CrossChainReceiveInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for CrossChainReceiveInfo
impl RefUnwindSafe for CrossChainReceiveInfo
impl Send for CrossChainReceiveInfo
impl Sync for CrossChainReceiveInfo
impl Unpin for CrossChainReceiveInfo
impl UnsafeUnpin for CrossChainReceiveInfo
impl UnwindSafe for CrossChainReceiveInfo
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request