nym_node_requests/api/v2/node/
models.rs1use celes::Country;
5use schemars::JsonSchema;
6use serde::{Deserialize, Serialize};
7
8pub use crate::api::v1::node::models::AnnouncePorts;
9
10#[derive(Clone, Debug, Default, Serialize, Deserialize, JsonSchema)]
12#[cfg_attr(feature = "openapi", derive(utoipa::ToSchema))]
13pub struct AuxiliaryDetailsV2 {
14 #[cfg_attr(feature = "openapi", schema(example = "PL", value_type = Option<String>))]
16 #[schemars(with = "Option<String>")]
17 #[schemars(length(equal = 2))]
18 pub location: Option<Country>,
19
20 pub address: String,
22
23 #[serde(default)]
24 pub announce_ports: AnnouncePorts,
25
26 #[serde(default)]
30 pub accepted_operator_terms_and_conditions: bool,
31}