hanzo_client/models/validator_list.rs
1/*
2 * Hanzo Cloud API
3 *
4 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
5 *
6 * The version of the OpenAPI document: v1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ValidatorList {
16 /// Data is one entry per slot this org has claimed.
17 #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
18 pub data: Option<Vec<models::SlotView>>,
19 /// Network is the luxd network slug new nodes join on this deployment.
20 #[serde(rename = "network", skip_serializing_if = "Option::is_none")]
21 pub network: Option<String>,
22}
23
24impl ValidatorList {
25 pub fn new() -> ValidatorList {
26 ValidatorList {
27 data: None,
28 network: None,
29 }
30 }
31}
32