pub struct OnrampSessionTransactionDetails {
pub destination_amount: Option<String>,
pub destination_currency: Option<String>,
pub destination_network: Option<String>,
pub fees: Option<OnrampSessionFees>,
pub source_amount: Option<String>,
pub source_currency: Option<String>,
}Expand description
Transaction details returned from a Stripe onramp session.
JSON schema
{
"title": "OnrampSessionTransactionDetails",
"description": "Transaction details returned from a Stripe onramp
session.",
"examples": [
{
"destination_amount": "100.000000",
"destination_currency": "usdc",
"destination_network": "base",
"fees": {
"network_fee_amount": "0.17",
"transaction_fee_amount": "4.04"
},
"source_amount": "104.21",
"source_currency": "usd"
}
],
"type": "object",
"properties": {
"destination_amount": {
"type": "string"
},
"destination_currency": {
"type": "string"
},
"destination_network": {
"type": "string"
},
"fees": {
"allOf": [
{
"$ref": "#/components/schemas/OnrampSessionFees"
},
{
"type": "object"
}
]
},
"source_amount": {
"type": "string"
},
"source_currency": {
"type": "string"
}
},
"x-stainless-model": "onramps.onramp_session_transaction_details"
}Fields§
§destination_amount: Option<String>§destination_currency: Option<String>§destination_network: Option<String>§fees: Option<OnrampSessionFees>§source_amount: Option<String>§source_currency: Option<String>Trait Implementations§
Source§impl Clone for OnrampSessionTransactionDetails
impl Clone for OnrampSessionTransactionDetails
Source§fn clone(&self) -> OnrampSessionTransactionDetails
fn clone(&self) -> OnrampSessionTransactionDetails
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<'de> Deserialize<'de> for OnrampSessionTransactionDetails
impl<'de> Deserialize<'de> for OnrampSessionTransactionDetails
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<&OnrampSessionTransactionDetails> for OnrampSessionTransactionDetails
impl From<&OnrampSessionTransactionDetails> for OnrampSessionTransactionDetails
Source§fn from(value: &OnrampSessionTransactionDetails) -> Self
fn from(value: &OnrampSessionTransactionDetails) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OnrampSessionTransactionDetails
impl RefUnwindSafe for OnrampSessionTransactionDetails
impl Send for OnrampSessionTransactionDetails
impl Sync for OnrampSessionTransactionDetails
impl Unpin for OnrampSessionTransactionDetails
impl UnsafeUnpin for OnrampSessionTransactionDetails
impl UnwindSafe for OnrampSessionTransactionDetails
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