pub struct FiatOnrampDestination {
pub address: String,
pub asset: CryptoCurrencyCode,
pub chain: Caip2ChainId,
}Expand description
Destination cryptocurrency details for a fiat onramp quote request.
JSON schema
{
"title": "FiatOnrampDestination",
"description": "Destination cryptocurrency details for a fiat onramp
quote request.",
"examples": [
{
"address": "0x1234567890abcdef1234567890abcdef12345678",
"asset": "USDC",
"chain": "eip155:42161"
}
],
"type": "object",
"required": [
"address",
"asset",
"chain"
],
"properties": {
"address": {
"type": "string"
},
"asset": {
"$ref": "#/components/schemas/CryptoCurrencyCode"
},
"chain": {
"$ref": "#/components/schemas/Caip2ChainId"
}
},
"x-stainless-model": "onramps.fiat_onramp_destination"
}Fields§
§address: String§asset: CryptoCurrencyCode§chain: Caip2ChainIdTrait Implementations§
Source§impl Clone for FiatOnrampDestination
impl Clone for FiatOnrampDestination
Source§fn clone(&self) -> FiatOnrampDestination
fn clone(&self) -> FiatOnrampDestination
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FiatOnrampDestination
impl Debug for FiatOnrampDestination
Source§impl<'de> Deserialize<'de> for FiatOnrampDestination
impl<'de> Deserialize<'de> for FiatOnrampDestination
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<&FiatOnrampDestination> for FiatOnrampDestination
impl From<&FiatOnrampDestination> for FiatOnrampDestination
Source§fn from(value: &FiatOnrampDestination) -> Self
fn from(value: &FiatOnrampDestination) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FiatOnrampDestination
impl RefUnwindSafe for FiatOnrampDestination
impl Send for FiatOnrampDestination
impl Sync for FiatOnrampDestination
impl Unpin for FiatOnrampDestination
impl UnsafeUnpin for FiatOnrampDestination
impl UnwindSafe for FiatOnrampDestination
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