pub struct OnrampOrderFee {
pub amount: String,
pub currency: String,
pub type_: OnrampOrderFeeType,
}
Expand description
A fee associated with an order.
JSON schema
{
"description": "A fee associated with an order.",
"type": "object",
"required": [
"amount",
"currency",
"type"
],
"properties": {
"amount": {
"description": "The amount of the fee.",
"examples": [
"0.95"
],
"type": "string"
},
"currency": {
"description": "The currency of the fee.",
"examples": [
"USDC"
],
"type": "string"
},
"type": {
"description": "The type of fee.",
"examples": [
"FEE_TYPE_NETWORK"
],
"type": "string",
"enum": [
"FEE_TYPE_NETWORK",
"FEE_TYPE_EXCHANGE"
]
}
}
}
Fields§
§amount: String
The amount of the fee.
currency: String
The currency of the fee.
type_: OnrampOrderFeeType
The type of fee.
Implementations§
Source§impl OnrampOrderFee
impl OnrampOrderFee
pub fn builder() -> OnrampOrderFee
Trait Implementations§
Source§impl Clone for OnrampOrderFee
impl Clone for OnrampOrderFee
Source§fn clone(&self) -> OnrampOrderFee
fn clone(&self) -> OnrampOrderFee
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 OnrampOrderFee
impl Debug for OnrampOrderFee
Source§impl<'de> Deserialize<'de> for OnrampOrderFee
impl<'de> Deserialize<'de> for OnrampOrderFee
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<&OnrampOrderFee> for OnrampOrderFee
impl From<&OnrampOrderFee> for OnrampOrderFee
Source§fn from(value: &OnrampOrderFee) -> Self
fn from(value: &OnrampOrderFee) -> Self
Converts to this type from the input type.
Source§impl From<OnrampOrderFee> for OnrampOrderFee
impl From<OnrampOrderFee> for OnrampOrderFee
Source§fn from(value: OnrampOrderFee) -> Self
fn from(value: OnrampOrderFee) -> Self
Converts to this type from the input type.
Source§impl Serialize for OnrampOrderFee
impl Serialize for OnrampOrderFee
Source§impl TryFrom<OnrampOrderFee> for OnrampOrderFee
impl TryFrom<OnrampOrderFee> for OnrampOrderFee
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: OnrampOrderFee) -> Result<Self, ConversionError>
fn try_from(value: OnrampOrderFee) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for OnrampOrderFee
impl RefUnwindSafe for OnrampOrderFee
impl Send for OnrampOrderFee
impl Sync for OnrampOrderFee
impl Unpin for OnrampOrderFee
impl UnwindSafe for OnrampOrderFee
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