quicknode_sdk/admin/
account.rs1#[cfg(feature = "node")]
2use napi_derive::napi;
3#[cfg(feature = "python")]
4use pyo3::pyclass;
5#[cfg(feature = "python")]
6use pyo3_stub_gen::derive::gen_stub_pyclass;
7use serde::{Deserialize, Serialize};
8
9#[cfg_attr(feature = "python", gen_stub_pyclass)]
11#[cfg_attr(feature = "python", pyclass(get_all, set_all))]
12#[cfg_attr(feature = "node", napi(object))]
13#[derive(Debug, Clone, Serialize, Deserialize)]
14pub struct AccountSubscription {
15 pub plan_name: Option<String>,
17 pub status: Option<String>,
19 pub interval: Option<String>,
21}
22
23#[cfg_attr(feature = "python", gen_stub_pyclass)]
25#[cfg_attr(feature = "python", pyclass(get_all, set_all))]
26#[cfg_attr(feature = "node", napi(object))]
27#[derive(Debug, Clone, Serialize, Deserialize)]
28pub struct AccountInfo {
29 pub id: i64,
31 pub name: String,
33 pub created_at: String,
35 pub billing_version: Option<String>,
37 pub subscription: Option<AccountSubscription>,
39}
40
41#[cfg_attr(feature = "python", gen_stub_pyclass)]
43#[cfg_attr(feature = "python", pyclass(get_all, set_all))]
44#[cfg_attr(feature = "node", napi(object))]
45#[derive(Debug, Clone, Serialize, Deserialize)]
46pub struct AccountInfoResponse {
47 pub data: Option<AccountInfo>,
49 pub error: Option<String>,
51}