Struct route_verification_ir::set::RouteSet
source · pub struct RouteSet {
pub body: String,
pub members: Vec<RouteSetMember>,
}
Expand description
The attributes of the route-set class are shown in Figure 12. The route-set attribute defines the name of the set. It is an RPSL name that starts with “rs-”. The members attribute lists the members of the set. The members attribute is a list of address prefixes or other route-set names. Note that, the route-set class is a set of route prefixes, not of RPSL route objects.
Fields§
§body: String
§members: Vec<RouteSetMember>
List of <address-prefix-range>
or <route-set-name>
or
<route-set-name><range-operator>
.
Trait Implementations§
source§impl<'de> Deserialize<'de> for RouteSet
impl<'de> Deserialize<'de> for RouteSet
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 Ord for RouteSet
impl Ord for RouteSet
source§impl PartialEq for RouteSet
impl PartialEq for RouteSet
source§impl PartialOrd for RouteSet
impl PartialOrd for RouteSet
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for RouteSet
impl StructuralPartialEq for RouteSet
Auto Trait Implementations§
impl Freeze for RouteSet
impl RefUnwindSafe for RouteSet
impl Send for RouteSet
impl Sync for RouteSet
impl Unpin for RouteSet
impl UnwindSafe for RouteSet
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> 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