pub struct OnrampSession {
pub onramp_url: Url,
}Expand description
An onramp session containing a ready-to-use onramp URL.
JSON schema
{
"description": "An onramp session containing a ready-to-use onramp URL.",
"examples": [
{
"onrampUrl": "https://pay.coinbase.com/buy?sessionToken=abc123F"
}
],
"type": "object",
"required": [
"onrampUrl"
],
"properties": {
"onrampUrl": {
"description": "Ready-to-use onramp URL.",
"examples": [
"https://pay.coinbase.com/buy?sessionToken=abc123F"
],
"allOf": [
{
"$ref": "#/components/schemas/Url"
}
]
}
}
}Fields§
§onramp_url: UrlReady-to-use onramp URL.
Implementations§
Source§impl OnrampSession
impl OnrampSession
pub fn builder() -> OnrampSession
Trait Implementations§
Source§impl Clone for OnrampSession
impl Clone for OnrampSession
Source§fn clone(&self) -> OnrampSession
fn clone(&self) -> OnrampSession
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 OnrampSession
impl Debug for OnrampSession
Source§impl<'de> Deserialize<'de> for OnrampSession
impl<'de> Deserialize<'de> for OnrampSession
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<&OnrampSession> for OnrampSession
impl From<&OnrampSession> for OnrampSession
Source§fn from(value: &OnrampSession) -> Self
fn from(value: &OnrampSession) -> Self
Converts to this type from the input type.
Source§impl From<OnrampSession> for OnrampSession
impl From<OnrampSession> for OnrampSession
Source§fn from(value: OnrampSession) -> Self
fn from(value: OnrampSession) -> Self
Converts to this type from the input type.
Source§impl Serialize for OnrampSession
impl Serialize for OnrampSession
Source§impl TryFrom<OnrampSession> for OnrampSession
impl TryFrom<OnrampSession> for OnrampSession
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: OnrampSession) -> Result<Self, ConversionError>
fn try_from(value: OnrampSession) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for OnrampSession
impl RefUnwindSafe for OnrampSession
impl Send for OnrampSession
impl Sync for OnrampSession
impl Unpin for OnrampSession
impl UnwindSafe for OnrampSession
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