ampr_api/
encap.rs

1use std::net::Ipv4Addr;
2
3use serde::{Deserialize, Serialize};
4
5/// Describes an encapsulation entry
6#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
7pub struct EncapEntry {
8    /// Public IPv4 address of the gateway
9    #[serde(rename = "gatewayIP")]
10    pub gateway: Ipv4Addr,
11
12    /// Type of encapsulation (currently only 'IPIP' will appear here)
13    #[serde(rename = "encapType")]
14    pub ty: String,
15
16    /// Network address of the route being announced by this gateway.
17    pub network: Ipv4Addr,
18
19    /// Mask length of the network being announced
20    #[serde(rename = "maskLength")]
21    pub mask_len: u8,
22
23    /// Description of the gateway as supplied by the owner.
24    pub title: String,
25
26    /// Callsign of the owner / person responsible for this gateway.
27    pub owner: String,
28
29    /// Date/time this gateway's data was last altered.
30    pub updated: String,
31}