ic_query/icrc/model/contracts/reports/
account.rs1use serde::Serialize;
8
9#[derive(Clone, Debug, Eq, PartialEq, Serialize)]
16pub struct IcrcBalanceReport {
17 pub schema_version: u32,
18 pub ledger_canister_id: String,
19 pub account_owner: String,
20 pub subaccount_hex: Option<String>,
21 pub fetched_at: String,
22 pub source_endpoint: String,
23 pub fetched_by: String,
24 pub token_symbol: String,
25 pub decimals: u8,
26 pub balance: String,
27}
28
29#[derive(Clone, Debug, Eq, PartialEq, Serialize)]
36pub struct IcrcAllowanceReport {
37 pub schema_version: u32,
38 pub ledger_canister_id: String,
39 pub account_owner: String,
40 pub account_subaccount_hex: Option<String>,
41 pub spender_owner: String,
42 pub spender_subaccount_hex: Option<String>,
43 pub fetched_at: String,
44 pub source_endpoint: String,
45 pub fetched_by: String,
46 pub token_symbol: String,
47 pub decimals: u8,
48 pub allowance: String,
49 pub expires_at_unix_nanos: Option<String>,
50}