photon_api/models/
token_account.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 TokenAccount {
15    #[serde(rename = "account")]
16    pub account: Box<models::Account>,
17    #[serde(rename = "tokenData")]
18    pub token_data: Box<models::TokenData>,
19}
20
21impl TokenAccount {
22    pub fn new(account: models::Account, token_data: models::TokenData) -> TokenAccount {
23        TokenAccount {
24            account: Box::new(account),
25            token_data: Box::new(token_data),
26        }
27    }
28}