pub struct PrivyFee {
pub amount: String,
pub recipient: Option<PrivyFeeRecipient>,
pub type_: PrivyFeeType,
}Expand description
Estimated fee paid to Privy.
JSON schema
{
"title": "PrivyFee",
"description": "Estimated fee paid to Privy.",
"examples": [
{
"amount": "0.20",
"type": "privy"
}
],
"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": [
"privy"
]
}
},
"x-stainless-model": "wallets.privy_fee"
}Fields§
§amount: StringAmount in USD (in decimals).
recipient: Option<PrivyFeeRecipient>§type_: PrivyFeeTypeTrait Implementations§
Source§impl<'de> Deserialize<'de> for PrivyFee
impl<'de> Deserialize<'de> for PrivyFee
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<PrivyFee> for FeeLineItem
impl From<PrivyFee> for FeeLineItem
Auto Trait Implementations§
impl Freeze for PrivyFee
impl RefUnwindSafe for PrivyFee
impl Send for PrivyFee
impl Sync for PrivyFee
impl Unpin for PrivyFee
impl UnsafeUnpin for PrivyFee
impl UnwindSafe for PrivyFee
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