photon_api/models/
token_balance.rs

1/*
2 * photon-indexer
3 *
4 * Solana indexer for general compression
5 *
6 * The version of the OpenAPI document: 0.50.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct TokenBalance {
15    #[serde(rename = "balance")]
16    pub balance: u64,
17    /// A Solana public key represented as a base58 string.
18    #[serde(rename = "mint")]
19    pub mint: String,
20}
21
22impl TokenBalance {
23    pub fn new(balance: u64, mint: String) -> TokenBalance {
24        TokenBalance { balance, mint }
25    }
26}