pub struct OnrampPaymentLink {
pub payment_link_type: OnrampPaymentLinkType,
pub url: String,
}
Expand description
A payment link to pay for an order.
Please refer to the [Onramp docs](https://docs.cdp.coinbase.com/onramp-&-offramp/onramp-apis/onramp-overview) for details on how to integrate with the different payment link types.
JSON schema
{
"description": "A payment link to pay for an order.\n\nPlease refer to the [Onramp docs](https://docs.cdp.coinbase.com/onramp-&-offramp/onramp-apis/onramp-overview) for details on how to integrate with the different payment link types.",
"type": "object",
"required": [
"paymentLinkType",
"url"
],
"properties": {
"paymentLinkType": {
"$ref": "#/components/schemas/OnrampPaymentLinkType"
},
"url": {
"description": "The URL to the hosted widget the user should be redirected to. For certain payment link types you can append your own redirect_url query parameter to this URL to ensure the user is redirected back to your app after the widget completes.",
"examples": [
"https://pay.coinbase.com/v2/api-onramp/apple-pay?sessionToken=MWYwNWQwODktZTZlYy02OTdlLTgzZTYtMTI3NzcyOWJhNjM3"
],
"type": "string"
}
}
}
Fields§
§payment_link_type: OnrampPaymentLinkType
§url: String
The URL to the hosted widget the user should be redirected to. For certain payment link types you can append your own redirect_url query parameter to this URL to ensure the user is redirected back to your app after the widget completes.
Implementations§
Source§impl OnrampPaymentLink
impl OnrampPaymentLink
pub fn builder() -> OnrampPaymentLink
Trait Implementations§
Source§impl Clone for OnrampPaymentLink
impl Clone for OnrampPaymentLink
Source§fn clone(&self) -> OnrampPaymentLink
fn clone(&self) -> OnrampPaymentLink
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OnrampPaymentLink
impl Debug for OnrampPaymentLink
Source§impl<'de> Deserialize<'de> for OnrampPaymentLink
impl<'de> Deserialize<'de> for OnrampPaymentLink
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
Source§impl From<&OnrampPaymentLink> for OnrampPaymentLink
impl From<&OnrampPaymentLink> for OnrampPaymentLink
Source§fn from(value: &OnrampPaymentLink) -> Self
fn from(value: &OnrampPaymentLink) -> Self
Converts to this type from the input type.
Source§impl From<OnrampPaymentLink> for OnrampPaymentLink
impl From<OnrampPaymentLink> for OnrampPaymentLink
Source§fn from(value: OnrampPaymentLink) -> Self
fn from(value: OnrampPaymentLink) -> Self
Converts to this type from the input type.
Source§impl Serialize for OnrampPaymentLink
impl Serialize for OnrampPaymentLink
Source§impl TryFrom<OnrampPaymentLink> for OnrampPaymentLink
impl TryFrom<OnrampPaymentLink> for OnrampPaymentLink
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: OnrampPaymentLink) -> Result<Self, ConversionError>
fn try_from(value: OnrampPaymentLink) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for OnrampPaymentLink
impl RefUnwindSafe for OnrampPaymentLink
impl Send for OnrampPaymentLink
impl Sync for OnrampPaymentLink
impl Unpin for OnrampPaymentLink
impl UnwindSafe for OnrampPaymentLink
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