ripestat_common/resources/
rrc_info.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct RrcInfoResponse {
5 pub rrcs: Vec<Rrc>,
6}
7
8#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
9pub struct Rrc {
10 pub id: i64,
11 pub name: String,
12 pub geographical_location: String,
13 pub topological_location: String,
14 pub multihop: bool,
15 pub activated_on: String,
16 pub deactivated_on: String,
17 pub peers: Vec<RrcInfoPeer>,
18}
19
20#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
21pub struct RrcInfoPeer {
22 pub asn: i64,
23 pub ip: String,
24 pub v4_prefix_count: i64,
25 pub is_full_feed_v4: bool,
26 pub v6_prefix_count: i64,
27 pub is_full_feed_v6: bool,
28}