photon_api/models/owner_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 OwnerBalance {
15 #[serde(rename = "balance")]
16 pub balance: u64,
17 /// A Solana public key represented as a base58 string.
18 #[serde(rename = "owner")]
19 pub owner: String,
20}
21
22impl OwnerBalance {
23 pub fn new(balance: u64, owner: String) -> OwnerBalance {
24 OwnerBalance { balance, owner }
25 }
26}