pub struct BridgeFromCashAppResponse {
pub url: String,
pub amount_sats: u64,
pub estimated_out: u128,
pub asset: 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
Deprecated. Use CreateBridgeResponse, from the bridging client’s
bridge_from_cash_app.
Response to a BridgeFromCashAppRequest: the URL to pay plus the quote,
so the caller can display the expected delivery and fees.
Fields§
§url: StringThe cash.app URL to open. Paying it delivers the stablecoin.
amount_sats: u64Sats the payer deposits through Cash App.
estimated_out: u128Estimated amount delivered to the recipient, in asset base units.
asset: StringThe destination stablecoin symbol (e.g. USDC). estimated_out is
denominated in it.
service_fee_amount: u128Provider service fee, including the partner fee when one is set, in
service_fee_asset base units.
service_fee_asset: Option<String>Denomination of service_fee_amount. Unset means 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 BridgeFromCashAppResponse
impl Clone for BridgeFromCashAppResponse
Source§fn clone(&self) -> BridgeFromCashAppResponse
fn clone(&self) -> BridgeFromCashAppResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BridgeFromCashAppResponse
impl Debug for BridgeFromCashAppResponse
Source§impl From<BridgeFromCashAppResponse> for PreparePaymentLinkResponse
impl From<BridgeFromCashAppResponse> for PreparePaymentLinkResponse
Source§fn from(response: BridgeFromCashAppResponse) -> Self
fn from(response: BridgeFromCashAppResponse) -> Self
Auto Trait Implementations§
impl Freeze for BridgeFromCashAppResponse
impl RefUnwindSafe for BridgeFromCashAppResponse
impl Send for BridgeFromCashAppResponse
impl Sync for BridgeFromCashAppResponse
impl Unpin for BridgeFromCashAppResponse
impl UnsafeUnpin for BridgeFromCashAppResponse
impl UnwindSafe for BridgeFromCashAppResponse
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