pub struct BrokerItem {
pub ts_start: NaiveDateTime,
pub ts_end: NaiveDateTime,
pub collector_id: String,
pub data_type: String,
pub url: String,
pub rough_size: i64,
pub exact_size: i64,
}Expand description
BGPKIT Broker data item.
The fields are:
- ts_start: the starting timestamp of the data file
- ts_end: the ending timestamp of the data file
- collector_id: the collector id of the item: e.g.
rrc00 - data_type: type of the data item:
riborupdates - url: the URL to the data item file
- rough_size: rough file size extracted from the collector webpage
- exact_size: exact file size extracted by crawling the file
An array of BrokerItems can be sorted with the following order:
- smaller timestamp before larger timestamp
- RIB before updates
- then alphabetical order on collector ID (route-views before rrc)
Fields§
§ts_start: NaiveDateTimestart timestamp
ts_end: NaiveDateTimeend timestamps
collector_id: Stringthe collector id of the item: e.g. rrc00
data_type: Stringtype of the data item: rib or updates
url: Stringthe URL to the data item file
rough_size: i64rough file size extracted from the hosting site page
exact_size: i64exact file size extracted by crawling the file
Implementations§
Trait Implementations§
Source§impl Clone for BrokerItem
impl Clone for BrokerItem
Source§fn clone(&self) -> BrokerItem
fn clone(&self) -> BrokerItem
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 BrokerItem
impl Debug for BrokerItem
Source§impl<'de> Deserialize<'de> for BrokerItem
impl<'de> Deserialize<'de> for BrokerItem
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 Display for BrokerItem
impl Display for BrokerItem
Source§impl Hash for BrokerItem
impl Hash for BrokerItem
Source§impl Ord for BrokerItem
impl Ord for BrokerItem
Source§impl PartialEq for BrokerItem
impl PartialEq for BrokerItem
Source§impl PartialOrd for BrokerItem
impl PartialOrd for BrokerItem
Source§impl Serialize for BrokerItem
impl Serialize for BrokerItem
impl Eq for BrokerItem
impl StructuralPartialEq for BrokerItem
Auto Trait Implementations§
impl Freeze for BrokerItem
impl RefUnwindSafe for BrokerItem
impl Send for BrokerItem
impl Sync for BrokerItem
impl Unpin for BrokerItem
impl UnwindSafe for BrokerItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.