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