quicknode_sdk/admin/
endpoint_urls.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};
8use std::collections::HashMap;
9
10#[cfg_attr(feature = "python", gen_stub_pyclass)]
12#[cfg_attr(feature = "python", pyclass(get_all, set_all))]
13#[cfg_attr(feature = "node", napi(object))]
14#[derive(Debug, Clone, Serialize, Deserialize)]
15pub struct EndpointUrl {
16 pub http_url: String,
18 pub wss_url: Option<String>,
20}
21
22#[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 GetEndpointUrlsData {
29 pub http_url: String,
31 pub wss_url: Option<String>,
33 pub multichain_urls: Option<HashMap<String, EndpointUrl>>,
35}
36
37#[cfg_attr(feature = "python", gen_stub_pyclass)]
39#[cfg_attr(feature = "python", pyclass(get_all, set_all))]
40#[cfg_attr(feature = "node", napi(object))]
41#[derive(Debug, Clone, Serialize, Deserialize)]
42pub struct GetEndpointUrlsResponse {
43 pub data: Option<GetEndpointUrlsData>,
45 pub error: Option<String>,
47}