pub struct SimpleEarnLockedPositionResponse {
pub rows: Vec<SimpleEarnLockedPositionResponseRowsItem>,
pub total: i64,
}
Expand description
SimpleEarnLockedPositionResponse
JSON schema
{
"type": "object",
"required": [
"rows",
"total"
],
"properties": {
"rows": {
"type": "array",
"items": {
"type": "object",
"required": [
"APY",
"accrualDays",
"amount",
"asset",
"duration",
"isAutoRenew",
"isRenewable",
"positionId",
"projectId",
"purchaseTime",
"redeemDate",
"rewardAsset"
],
"properties": {
"APY": {
"examples": [
"0.23"
],
"type": "string"
},
"accrualDays": {
"examples": [
"4"
],
"type": "string"
},
"amount": {
"examples": [
"122.09202928"
],
"type": "string"
},
"asset": {
"examples": [
"AXS"
],
"type": "string"
},
"duration": {
"examples": [
"60"
],
"type": "string"
},
"isAutoRenew": {
"examples": [
true
],
"type": "boolean"
},
"isRenewable": {
"examples": [
true
],
"type": "boolean"
},
"positionId": {
"examples": [
"123123"
],
"type": "string"
},
"projectId": {
"examples": [
"Axs*90"
],
"type": "string"
},
"purchaseTime": {
"examples": [
"1646182276000"
],
"type": "string"
},
"redeemDate": {
"examples": [
"1732182276000"
],
"type": "string"
},
"rewardAsset": {
"examples": [
"AXS"
],
"type": "string"
}
}
}
},
"total": {
"examples": [
1
],
"type": "integer",
"format": "int64"
}
}
}
Fields§
§rows: Vec<SimpleEarnLockedPositionResponseRowsItem>
§total: i64
Trait Implementations§
Source§impl Clone for SimpleEarnLockedPositionResponse
impl Clone for SimpleEarnLockedPositionResponse
Source§fn clone(&self) -> SimpleEarnLockedPositionResponse
fn clone(&self) -> SimpleEarnLockedPositionResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for SimpleEarnLockedPositionResponse
impl<'de> Deserialize<'de> for SimpleEarnLockedPositionResponse
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<&SimpleEarnLockedPositionResponse> for SimpleEarnLockedPositionResponse
impl From<&SimpleEarnLockedPositionResponse> for SimpleEarnLockedPositionResponse
Source§fn from(value: &SimpleEarnLockedPositionResponse) -> Self
fn from(value: &SimpleEarnLockedPositionResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SimpleEarnLockedPositionResponse
impl RefUnwindSafe for SimpleEarnLockedPositionResponse
impl Send for SimpleEarnLockedPositionResponse
impl Sync for SimpleEarnLockedPositionResponse
impl Unpin for SimpleEarnLockedPositionResponse
impl UnwindSafe for SimpleEarnLockedPositionResponse
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