fireblocks_sdk/models/reward_info.rs
1// Fireblocks API
2//
3// Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
4//
5// The version of the OpenAPI document: 1.8.0
6// Contact: developers@fireblocks.com
7// Generated by: https://openapi-generator.tech
8
9use {
10 crate::models,
11 serde::{Deserialize, Serialize},
12};
13
14/// RewardInfo : This field is relevant only for Algorand transactions. Both
15/// `srcRewards` and `destRewards` will appear only for Vault to Vault
16/// transactions, otherwise you will receive only the Fireblocks’ side of the
17/// transaction.
18#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
19pub struct RewardInfo {
20 #[serde(rename = "srcRewards", skip_serializing_if = "Option::is_none")]
21 pub src_rewards: Option<String>,
22 #[serde(rename = "destRewards", skip_serializing_if = "Option::is_none")]
23 pub dest_rewards: Option<String>,
24}
25
26impl RewardInfo {
27 /// This field is relevant only for Algorand transactions. Both `srcRewards`
28 /// and `destRewards` will appear only for Vault to Vault transactions,
29 /// otherwise you will receive only the Fireblocks’ side of the transaction.
30 pub fn new() -> RewardInfo {
31 RewardInfo {
32 src_rewards: None,
33 dest_rewards: None,
34 }
35 }
36}