pub struct DeveloperFee {
pub amount: String,
pub recipient: Option<DeveloperFeeRecipient>,
pub type_: DeveloperFeeType,
}Expand description
Estimated fee paid to the developer.
JSON schema
{
"title": "DeveloperFee",
"description": "Estimated fee paid to the developer.",
"examples": [
{
"amount": "0.20",
"recipient": "0x1234567890abcdef1234567890abcdef12345678",
"type": "developer"
}
],
"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": [
"developer"
]
}
},
"x-stainless-model": "wallets.developer_fee"
}Fields§
§amount: StringAmount in USD (in decimals).
recipient: Option<DeveloperFeeRecipient>§type_: DeveloperFeeTypeTrait Implementations§
Source§impl Clone for DeveloperFee
impl Clone for DeveloperFee
Source§fn clone(&self) -> DeveloperFee
fn clone(&self) -> DeveloperFee
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 DeveloperFee
impl Debug for DeveloperFee
Source§impl<'de> Deserialize<'de> for DeveloperFee
impl<'de> Deserialize<'de> for DeveloperFee
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<&DeveloperFee> for DeveloperFee
impl From<&DeveloperFee> for DeveloperFee
Source§fn from(value: &DeveloperFee) -> Self
fn from(value: &DeveloperFee) -> Self
Converts to this type from the input type.
Source§impl From<DeveloperFee> for FeeLineItem
impl From<DeveloperFee> for FeeLineItem
Source§fn from(value: DeveloperFee) -> Self
fn from(value: DeveloperFee) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DeveloperFee
impl RefUnwindSafe for DeveloperFee
impl Send for DeveloperFee
impl Sync for DeveloperFee
impl Unpin for DeveloperFee
impl UnsafeUnpin for DeveloperFee
impl UnwindSafe for DeveloperFee
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