/*
 * photon-indexer
 *
 * Solana indexer for general compression
 *
 * The version of the OpenAPI document: 0.50.0
 *
 * Generated by: https://openapi-generator.tech
 */

use crate::models;

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TokenBalanceList {
    /// A base 58 encoded string.
    #[serde(rename = "cursor", skip_serializing_if = "Option::is_none")]
    pub cursor: Option<String>,
    #[serde(rename = "token_balances")]
    pub token_balances: Vec<models::TokenBalance>,
}

impl TokenBalanceList {
    pub fn new(token_balances: Vec<models::TokenBalance>) -> TokenBalanceList {
        TokenBalanceList {
            cursor: None,
            token_balances,
        }
    }
}
