pub struct TransferFee {
pub amount: String,
pub asset: Asset,
pub type_: TransferFeeType,
}Expand description
A single fee for a transfer.
JSON schema
{
"description": "A single fee for a transfer.",
"type": "object",
"required": [
"amount",
"asset",
"type"
],
"properties": {
"amount": {
"description": "The amount of the fee in units of the asset specified by `asset`.",
"examples": [
"1500000"
],
"type": "string"
},
"asset": {
"description": "The asset symbol.",
"examples": [
"usd"
],
"allOf": [
{
"$ref": "#/components/schemas/Asset"
}
]
},
"type": {
"description": "The type of the fee, indicating its purpose.",
"examples": [
"network"
],
"type": "string",
"enum": [
"bank",
"conversion",
"network",
"other"
],
"x-enum-varnames": [
"BankFee",
"ConversionFee",
"NetworkFee",
"OtherFee"
]
}
}
}Fields§
§amount: StringThe amount of the fee in units of the asset specified by asset.
asset: AssetThe asset symbol.
type_: TransferFeeTypeThe type of the fee, indicating its purpose.
Implementations§
Source§impl TransferFee
impl TransferFee
pub fn builder() -> TransferFee
Trait Implementations§
Source§impl Clone for TransferFee
impl Clone for TransferFee
Source§fn clone(&self) -> TransferFee
fn clone(&self) -> TransferFee
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 TransferFee
impl Debug for TransferFee
Source§impl<'de> Deserialize<'de> for TransferFee
impl<'de> Deserialize<'de> for TransferFee
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<&TransferFee> for TransferFee
impl From<&TransferFee> for TransferFee
Source§fn from(value: &TransferFee) -> Self
fn from(value: &TransferFee) -> Self
Converts to this type from the input type.
Source§impl From<TransferFee> for TransferFee
impl From<TransferFee> for TransferFee
Source§fn from(value: TransferFee) -> Self
fn from(value: TransferFee) -> Self
Converts to this type from the input type.
Source§impl Serialize for TransferFee
impl Serialize for TransferFee
Source§impl TryFrom<TransferFee> for TransferFee
impl TryFrom<TransferFee> for TransferFee
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: TransferFee) -> Result<Self, ConversionError>
fn try_from(value: TransferFee) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for TransferFee
impl RefUnwindSafe for TransferFee
impl Send for TransferFee
impl Sync for TransferFee
impl Unpin for TransferFee
impl UnsafeUnpin for TransferFee
impl UnwindSafe for TransferFee
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