pub struct KrakenEmbedEarnUserAllocation {
pub total_allocated: Option<KrakenEmbedEarnAmount>,
pub total_rewarded: Option<KrakenEmbedEarnAmount>,
pub upcoming_reward_date: Option<DateTime<Utc>>,
}Expand description
User allocation for an earn asset.
JSON schema
{
"title": "KrakenEmbedEarnUserAllocation",
"description": "User allocation for an earn asset.",
"type": "object",
"properties": {
"total_allocated": {
"allOf": [
{
"$ref": "#/components/schemas/KrakenEmbedEarnAmount"
},
{
"type": "object"
}
]
},
"total_rewarded": {
"allOf": [
{
"$ref": "#/components/schemas/KrakenEmbedEarnAmount"
},
{
"type": "object"
}
]
},
"upcoming_reward_date": {
"type": "string",
"format": "date-time"
}
},
"x-stainless-model": "kraken_embed.kraken_embed_earn_user_allocation"
}Fields§
§total_allocated: Option<KrakenEmbedEarnAmount>§total_rewarded: Option<KrakenEmbedEarnAmount>§upcoming_reward_date: Option<DateTime<Utc>>Trait Implementations§
Source§impl Clone for KrakenEmbedEarnUserAllocation
impl Clone for KrakenEmbedEarnUserAllocation
Source§fn clone(&self) -> KrakenEmbedEarnUserAllocation
fn clone(&self) -> KrakenEmbedEarnUserAllocation
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<'de> Deserialize<'de> for KrakenEmbedEarnUserAllocation
impl<'de> Deserialize<'de> for KrakenEmbedEarnUserAllocation
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<&KrakenEmbedEarnUserAllocation> for KrakenEmbedEarnUserAllocation
impl From<&KrakenEmbedEarnUserAllocation> for KrakenEmbedEarnUserAllocation
Source§fn from(value: &KrakenEmbedEarnUserAllocation) -> Self
fn from(value: &KrakenEmbedEarnUserAllocation) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KrakenEmbedEarnUserAllocation
impl RefUnwindSafe for KrakenEmbedEarnUserAllocation
impl Send for KrakenEmbedEarnUserAllocation
impl Sync for KrakenEmbedEarnUserAllocation
impl Unpin for KrakenEmbedEarnUserAllocation
impl UnsafeUnpin for KrakenEmbedEarnUserAllocation
impl UnwindSafe for KrakenEmbedEarnUserAllocation
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