pub struct ParseFilters {
pub origin_asn: Option<u32>,
pub prefix: Option<String>,
pub include_super: bool,
pub include_sub: bool,
pub peer_ip: Vec<IpAddr>,
pub peer_asn: Option<u32>,
pub elem_type: Option<ElemTypeEnum>,
pub start_ts: Option<String>,
pub end_ts: Option<String>,
pub duration: Option<String>,
pub as_path: Option<String>,
}Fields§
§origin_asn: Option<u32>Filter by origin AS Number
prefix: Option<String>Filter by network prefix
include_super: boolInclude super-prefix when filtering
include_sub: boolInclude sub-prefix when filtering
peer_ip: Vec<IpAddr>Filter by peer IP address
peer_asn: Option<u32>Filter by peer ASN
elem_type: Option<ElemTypeEnum>Filter by elem type: announce (a) or withdraw (w)
start_ts: Option<String>Filter by start unix timestamp inclusive
end_ts: Option<String>Filter by end unix timestamp inclusive
duration: Option<String>Duration from the start-ts or end-ts, e.g. 1h
as_path: Option<String>Filter by AS path regex string
Implementations§
Source§impl ParseFilters
impl ParseFilters
pub fn parse_start_end_strings(&self) -> Result<(i64, i64)>
Trait Implementations§
Source§impl Args for ParseFilters
impl Args for ParseFilters
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for ParseFilters
impl Clone for ParseFilters
Source§fn clone(&self) -> ParseFilters
fn clone(&self) -> ParseFilters
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 ParseFilters
impl Debug for ParseFilters
Source§impl FromArgMatches for ParseFilters
impl FromArgMatches for ParseFilters
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for ParseFilters
impl RefUnwindSafe for ParseFilters
impl Send for ParseFilters
impl Sync for ParseFilters
impl Unpin for ParseFilters
impl UnwindSafe for ParseFilters
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more