pub struct EthereumYieldDepositInput {
pub asset_amount: EthereumYieldDepositInputAssetAmount,
pub vault_id: String,
}Expand description
Input for depositing assets into an ERC-4626 vault.
JSON schema
{
"title": "EthereumYieldDepositInput",
"description": "Input for depositing assets into 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 deposit, 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 deposit into.",
"type": "string"
}
},
"x-stainless-model": "yield.ethereum_yield_deposit_input"
}Fields§
§asset_amount: EthereumYieldDepositInputAssetAmountThe amount of the underlying asset to deposit, 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 deposit into.
Trait Implementations§
Source§impl Clone for EthereumYieldDepositInput
impl Clone for EthereumYieldDepositInput
Source§fn clone(&self) -> EthereumYieldDepositInput
fn clone(&self) -> EthereumYieldDepositInput
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 EthereumYieldDepositInput
impl Debug for EthereumYieldDepositInput
Source§impl<'de> Deserialize<'de> for EthereumYieldDepositInput
impl<'de> Deserialize<'de> for EthereumYieldDepositInput
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<&EthereumYieldDepositInput> for EthereumYieldDepositInput
impl From<&EthereumYieldDepositInput> for EthereumYieldDepositInput
Source§fn from(value: &EthereumYieldDepositInput) -> Self
fn from(value: &EthereumYieldDepositInput) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EthereumYieldDepositInput
impl RefUnwindSafe for EthereumYieldDepositInput
impl Send for EthereumYieldDepositInput
impl Sync for EthereumYieldDepositInput
impl Unpin for EthereumYieldDepositInput
impl UnsafeUnpin for EthereumYieldDepositInput
impl UnwindSafe for EthereumYieldDepositInput
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