pub struct BrokerPeer {
pub date: NaiveDate,
pub ip: IpAddr,
pub asn: u32,
pub collector: String,
pub num_v4_pfxs: u32,
pub num_v6_pfxs: u32,
pub num_connected_asns: u32,
}Expand description
MRT collector peer information
Represents the information of an MRT collector peer.
Fields§
§date: NaiveDateThe date of the latest available data.
ip: IpAddrThe IP address of the collector peer.
asn: u32The ASN (Autonomous System Number) of the collector peer.
collector: StringThe name of the collector.
num_v4_pfxs: u32The number of IPv4 prefixes.
num_v6_pfxs: u32The number of IPv6 prefixes.
num_connected_asns: u32The number of connected ASNs.
Trait Implementations§
Source§impl Clone for BrokerPeer
impl Clone for BrokerPeer
Source§fn clone(&self) -> BrokerPeer
fn clone(&self) -> BrokerPeer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BrokerPeer
impl Debug for BrokerPeer
Source§impl<'de> Deserialize<'de> for BrokerPeer
impl<'de> Deserialize<'de> for BrokerPeer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BrokerPeer
impl PartialEq for BrokerPeer
Source§impl Serialize for BrokerPeer
impl Serialize for BrokerPeer
impl Eq for BrokerPeer
impl StructuralPartialEq for BrokerPeer
Auto Trait Implementations§
impl Freeze for BrokerPeer
impl RefUnwindSafe for BrokerPeer
impl Send for BrokerPeer
impl Sync for BrokerPeer
impl Unpin for BrokerPeer
impl UnwindSafe for BrokerPeer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more