pub struct EthereumYieldSweepResponse {
pub asset_amount: Option<String>,
pub created_at: f64,
pub id: String,
pub share_amount: Option<String>,
pub status: EthereumYieldSweepStatus,
pub type_: EthereumYieldSweepType,
pub updated_at: f64,
pub vault_id: String,
pub wallet_id: String,
}Expand description
A yield sweep record representing a deposit or withdrawal.
JSON schema
{
"title": "EthereumYieldSweepResponse",
"description": "A yield sweep record representing a deposit or
withdrawal.",
"examples": [
{
"asset_amount": "1000000",
"created_at": 1631573050000,
"id": "cm7oxq1el000e11o8iwp7d0d0",
"share_amount": "987654321",
"status": "pending",
"type": "deposit",
"updated_at": 1631573050000,
"vault_id": "cm7oxq1el000e11o8iwp7d0d0",
"wallet_id": "fmfdj6yqly31huorjqzq38zc"
}
],
"type": "object",
"required": [
"created_at",
"id",
"status",
"type",
"updated_at",
"vault_id",
"wallet_id"
],
"properties": {
"asset_amount": {
"description": "The amount of underlying assets involved. Set after
the sweep is confirmed on-chain.",
"type": "string"
},
"created_at": {
"description": "Unix timestamp of when the sweep was created, in
milliseconds.",
"type": "number"
},
"id": {
"description": "Unique identifier for the yield sweep.",
"type": "string"
},
"share_amount": {
"description": "The amount of vault shares involved. Set after the
sweep is confirmed on-chain.",
"type": "string"
},
"status": {
"$ref": "#/components/schemas/EthereumYieldSweepStatus"
},
"type": {
"$ref": "#/components/schemas/EthereumYieldSweepType"
},
"updated_at": {
"description": "Unix timestamp of when the sweep was last updated,
in milliseconds.",
"type": "number"
},
"vault_id": {
"description": "The ID of the vault involved in the sweep.",
"type": "string"
},
"wallet_id": {
"description": "The ID of the wallet involved in the sweep.",
"type": "string"
}
},
"x-stainless-model": "yield.ethereum_yield_sweep_response"
}Fields§
§asset_amount: Option<String>The amount of underlying assets involved. Set after the sweep is confirmed on-chain.
created_at: f64§id: StringUnique identifier for the yield sweep.
The amount of vault shares involved. Set after the sweep is confirmed on-chain.
status: EthereumYieldSweepStatus§type_: EthereumYieldSweepType§updated_at: f64§vault_id: StringThe ID of the vault involved in the sweep.
wallet_id: StringThe ID of the wallet involved in the sweep.
Trait Implementations§
Source§impl Clone for EthereumYieldSweepResponse
impl Clone for EthereumYieldSweepResponse
Source§fn clone(&self) -> EthereumYieldSweepResponse
fn clone(&self) -> EthereumYieldSweepResponse
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 EthereumYieldSweepResponse
impl Debug for EthereumYieldSweepResponse
Source§impl<'de> Deserialize<'de> for EthereumYieldSweepResponse
impl<'de> Deserialize<'de> for EthereumYieldSweepResponse
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<&EthereumYieldSweepResponse> for EthereumYieldSweepResponse
impl From<&EthereumYieldSweepResponse> for EthereumYieldSweepResponse
Source§fn from(value: &EthereumYieldSweepResponse) -> Self
fn from(value: &EthereumYieldSweepResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EthereumYieldSweepResponse
impl RefUnwindSafe for EthereumYieldSweepResponse
impl Send for EthereumYieldSweepResponse
impl Sync for EthereumYieldSweepResponse
impl Unpin for EthereumYieldSweepResponse
impl UnsafeUnpin for EthereumYieldSweepResponse
impl UnwindSafe for EthereumYieldSweepResponse
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