photon_api/models/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 Context {
15 #[serde(rename = "slot")]
16 pub slot: u64,
17}
18
19impl Context {
20 pub fn new(slot: u64) -> Context {
21 Context { slot }
22 }
23}