pub struct RelayerFee {
pub amount: String,
pub recipient: Option<RelayerFeeRecipient>,
pub type_: RelayerFeeType,
}Expand description
Estimated fee paid to the relayer.
JSON schema
{
"title": "RelayerFee",
"description": "Estimated fee paid to the relayer.",
"examples": [
{
"amount": "0.20",
"recipient": "0x1234567890abcdef1234567890abcdef12345678",
"type": "relayer"
}
],
"type": "object",
"required": [
"amount",
"type"
],
"properties": {
"amount": {
"description": "Amount in USD (in decimals).",
"type": "string"
},
"recipient": {
"oneOf": [
{
"type": "string"
},
{
"type": "string"
},
{
"$ref": "#/components/schemas/TronAddress"
}
]
},
"type": {
"type": "string",
"enum": [
"relayer"
]
}
},
"x-stainless-model": "wallets.relayer_fee"
}Fields§
§amount: StringAmount in USD (in decimals).
recipient: Option<RelayerFeeRecipient>§type_: RelayerFeeTypeTrait Implementations§
Source§impl Clone for RelayerFee
impl Clone for RelayerFee
Source§fn clone(&self) -> RelayerFee
fn clone(&self) -> RelayerFee
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 RelayerFee
impl Debug for RelayerFee
Source§impl<'de> Deserialize<'de> for RelayerFee
impl<'de> Deserialize<'de> for RelayerFee
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<&RelayerFee> for RelayerFee
impl From<&RelayerFee> for RelayerFee
Source§fn from(value: &RelayerFee) -> Self
fn from(value: &RelayerFee) -> Self
Converts to this type from the input type.
Source§impl From<RelayerFee> for FeeLineItem
impl From<RelayerFee> for FeeLineItem
Source§fn from(value: RelayerFee) -> Self
fn from(value: RelayerFee) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RelayerFee
impl RefUnwindSafe for RelayerFee
impl Send for RelayerFee
impl Sync for RelayerFee
impl Unpin for RelayerFee
impl UnsafeUnpin for RelayerFee
impl UnwindSafe for RelayerFee
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