pub struct EthereumYieldWithdrawInput {
pub asset_amount: EthereumYieldWithdrawInputAssetAmount,
pub vault_id: String,
}Expand description
Input for withdrawing assets from an ERC-4626 vault.
JSON schema
{
"title": "EthereumYieldWithdrawInput",
"description": "Input for withdrawing assets from an ERC-4626 vault.",
"examples": [
{
"asset_amount": "1000000",
"vault_id": "cm7oxq1el000e11o8iwp7d0d0"
}
],
"type": "object",
"required": [
"asset_amount",
"vault_id"
],
"properties": {
"asset_amount": {
"description": "The amount of the underlying asset to withdraw, in
the smallest unit (e.g., wei for ETH, 6 decimals for USDC). Must be a
non-negative integer string.",
"type": "string",
"maxLength": 78,
"minLength": 1,
"pattern": "^\\d+$"
},
"vault_id": {
"description": "The ID of the vault to withdraw from.",
"type": "string"
}
},
"x-stainless-model": "yield.ethereum_yield_withdraw_input"
}Fields§
§asset_amount: EthereumYieldWithdrawInputAssetAmountThe amount of the underlying asset to withdraw, in the smallest unit (e.g., wei for ETH, 6 decimals for USDC). Must be a non-negative integer string.
vault_id: StringThe ID of the vault to withdraw from.
Trait Implementations§
Source§impl Clone for EthereumYieldWithdrawInput
impl Clone for EthereumYieldWithdrawInput
Source§fn clone(&self) -> EthereumYieldWithdrawInput
fn clone(&self) -> EthereumYieldWithdrawInput
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 EthereumYieldWithdrawInput
impl Debug for EthereumYieldWithdrawInput
Source§impl<'de> Deserialize<'de> for EthereumYieldWithdrawInput
impl<'de> Deserialize<'de> for EthereumYieldWithdrawInput
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<&EthereumYieldWithdrawInput> for EthereumYieldWithdrawInput
impl From<&EthereumYieldWithdrawInput> for EthereumYieldWithdrawInput
Source§fn from(value: &EthereumYieldWithdrawInput) -> Self
fn from(value: &EthereumYieldWithdrawInput) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EthereumYieldWithdrawInput
impl RefUnwindSafe for EthereumYieldWithdrawInput
impl Send for EthereumYieldWithdrawInput
impl Sync for EthereumYieldWithdrawInput
impl Unpin for EthereumYieldWithdrawInput
impl UnsafeUnpin for EthereumYieldWithdrawInput
impl UnwindSafe for EthereumYieldWithdrawInput
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