pub struct KrakenEmbedGetEarnSummaryResult {
pub auto_earn_eligible: bool,
pub auto_earn_enabled: bool,
pub auto_earn_last_changed: Option<DateTime<Utc>>,
pub num_earning_assets: u64,
pub payout_period: String,
pub total_allocated_converted: KrakenEmbedGetEarnSummaryResultTotalAllocatedConverted,
pub total_rewarded_converted_current_rate: KrakenEmbedGetEarnSummaryResultTotalRewardedConvertedCurrentRate,
pub total_rewarded_converted_true_rates: KrakenEmbedGetEarnSummaryResultTotalRewardedConvertedTrueRates,
pub upcoming_rewards: Vec<KrakenEmbedUpcomingReward>,
}Expand description
Result payload for earn summary response.
JSON schema
{
"title": "KrakenEmbedGetEarnSummaryResult",
"description": "Result payload for earn summary response.",
"type": "object",
"required": [
"auto_earn_eligible",
"auto_earn_enabled",
"num_earning_assets",
"payout_period",
"total_allocated_converted",
"total_rewarded_converted_current_rate",
"total_rewarded_converted_true_rates",
"upcoming_rewards"
],
"properties": {
"auto_earn_eligible": {
"type": "boolean"
},
"auto_earn_enabled": {
"type": "boolean"
},
"auto_earn_last_changed": {
"type": "string",
"format": "date-time"
},
"num_earning_assets": {
"type": "integer",
"minimum": 0.0
},
"payout_period": {
"type": "string"
},
"total_allocated_converted": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"total_rewarded_converted_current_rate": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"total_rewarded_converted_true_rates": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"upcoming_rewards": {
"type": "array",
"items": {
"$ref": "#/components/schemas/KrakenEmbedUpcomingReward"
}
}
},
"x-stainless-model":
"kraken_embed.kraken_embed_get_earn_summary_result"
}Fields§
§auto_earn_eligible: bool§auto_earn_enabled: bool§auto_earn_last_changed: Option<DateTime<Utc>>§num_earning_assets: u64§payout_period: String§total_allocated_converted: KrakenEmbedGetEarnSummaryResultTotalAllocatedConverted§total_rewarded_converted_current_rate: KrakenEmbedGetEarnSummaryResultTotalRewardedConvertedCurrentRate§total_rewarded_converted_true_rates: KrakenEmbedGetEarnSummaryResultTotalRewardedConvertedTrueRates§upcoming_rewards: Vec<KrakenEmbedUpcomingReward>Trait Implementations§
Source§impl Clone for KrakenEmbedGetEarnSummaryResult
impl Clone for KrakenEmbedGetEarnSummaryResult
Source§fn clone(&self) -> KrakenEmbedGetEarnSummaryResult
fn clone(&self) -> KrakenEmbedGetEarnSummaryResult
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 KrakenEmbedGetEarnSummaryResult
impl<'de> Deserialize<'de> for KrakenEmbedGetEarnSummaryResult
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<&KrakenEmbedGetEarnSummaryResult> for KrakenEmbedGetEarnSummaryResult
impl From<&KrakenEmbedGetEarnSummaryResult> for KrakenEmbedGetEarnSummaryResult
Source§fn from(value: &KrakenEmbedGetEarnSummaryResult) -> Self
fn from(value: &KrakenEmbedGetEarnSummaryResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KrakenEmbedGetEarnSummaryResult
impl RefUnwindSafe for KrakenEmbedGetEarnSummaryResult
impl Send for KrakenEmbedGetEarnSummaryResult
impl Sync for KrakenEmbedGetEarnSummaryResult
impl Unpin for KrakenEmbedGetEarnSummaryResult
impl UnsafeUnpin for KrakenEmbedGetEarnSummaryResult
impl UnwindSafe for KrakenEmbedGetEarnSummaryResult
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