pub struct CrossChainReceiveInfo {
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 expires_at: u64,
}Expand description
Information about the cross-chain receive quote.
Fields§
§deposit_address: StringBare external deposit address the sender pays to.
deposit_amount: u128Amount the sender must deposit, in source-asset base units
(route.decimals). 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 into Spark, or token base units when receiving a Spark token (e.g. USDB). The final delivered amount may move within the slippage tolerance.
destination_asset: StringSymbol of the Spark-side asset expected_received_amount is
denominated in, as the provider reports it: "BTC" for sats, or the
token symbol (e.g. "USDB").
token_identifier: Option<String>Spark token identifier when the destination is a token. Absent when the destination is BTC and the receiver will see sats.
service_fee_amount: u128Provider-quoted total fee for this receive, in service_fee_asset
units.
service_fee_asset: Option<String>Ticker for service_fee_amount. Absent when the fee is denominated
in sats.
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