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