#[non_exhaustive]pub struct RouteFilter {
pub prefix: String,
pub match_type: Option<String>,
}Expand description
A route-filter <prefix> <match-type> condition.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.prefix: String§match_type: Option<String>Everything after the prefix, e.g. "exact", "orlonger", "upto /24".
Trait Implementations§
Source§impl Clone for RouteFilter
impl Clone for RouteFilter
Source§impl Debug for RouteFilter
impl Debug for RouteFilter
impl Eq for RouteFilter
Source§impl PartialEq for RouteFilter
impl PartialEq for RouteFilter
impl StructuralPartialEq for RouteFilter
Auto Trait Implementations§
impl Forget for RouteFilter
impl Freeze for RouteFilter
impl Move for RouteFilter
impl RefUnwindSafe for RouteFilter
impl Send for RouteFilter
impl Sync for RouteFilter
impl Unpin for RouteFilter
impl UnsafeUnpin for RouteFilter
impl UnwindSafe for RouteFilter
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