pub struct CashAppBuyResponse {
pub redirect_url: String,
pub index: PaymentCreatedIndex,
}Expand description
The response to a CashAppBuyRequest.
Fields§
§redirect_url: StringA Cash App URL that funds the purchase.
Redirect your user to this URL to complete the purchase; for the smoothest experience, have them open it on a device where Cash App is already set up. The bought Bitcoin lands directly into Lexe wallet.
index: PaymentCreatedIndexIdentifier for the inbound payment funding this buy. Use it to look up
the payment (e.g. get_payment) once Cash App has funded it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CashAppBuyResponse
impl<'de> Deserialize<'de> for CashAppBuyResponse
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CashAppBuyResponse
impl RefUnwindSafe for CashAppBuyResponse
impl Send for CashAppBuyResponse
impl Sync for CashAppBuyResponse
impl Unpin for CashAppBuyResponse
impl UnwindSafe for CashAppBuyResponse
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