/*
 * 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 TokenBalanceListV2 {
    /// A base 58 encoded string.
    #[serde(rename = "cursor", skip_serializing_if = "Option::is_none")]
    pub cursor: Option<String>,
    #[serde(rename = "items")]
    pub items: Vec<models::TokenBalance>,
}

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