#[non_exhaustive]pub struct PolicyOptions {
pub policy_statements: Vec<PolicyStatement>,
pub communities: Vec<Community>,
pub prefix_lists: Vec<PrefixList>,
pub as_paths: Vec<AsPath>,
pub as_path_groups: Vec<AsPathGroup>,
pub resolution_maps: Vec<ResolutionMap>,
}Expand description
The top-level policy-options configuration.
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.policy_statements: Vec<PolicyStatement>§communities: Vec<Community>§prefix_lists: Vec<PrefixList>§as_paths: Vec<AsPath>§as_path_groups: Vec<AsPathGroup>§resolution_maps: Vec<ResolutionMap>Trait Implementations§
Source§impl Clone for PolicyOptions
impl Clone for PolicyOptions
Source§impl Debug for PolicyOptions
impl Debug for PolicyOptions
impl Eq for PolicyOptions
Source§impl PartialEq for PolicyOptions
impl PartialEq for PolicyOptions
impl StructuralPartialEq for PolicyOptions
Auto Trait Implementations§
impl Forget for PolicyOptions
impl Freeze for PolicyOptionswhere
*const u8 is !null: Freeze,
PhantomData<PolicyStatement>: Freeze,
PhantomData<Community>: Freeze,
PhantomData<PrefixList>: Freeze,
PhantomData<AsPath>: Freeze,
PhantomData<AsPathGroup>: Freeze,
PhantomData<ResolutionMap>: Freeze,
impl Move for PolicyOptions
impl RefUnwindSafe for PolicyOptions
impl Send for PolicyOptionswhere
RawVecInner: Send,
impl Sync for PolicyOptionswhere
RawVecInner: Sync,
impl Unpin for PolicyOptions
impl UnsafeUnpin for PolicyOptionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<PolicyStatement>: UnsafeUnpin,
PhantomData<Community>: UnsafeUnpin,
PhantomData<PrefixList>: UnsafeUnpin,
PhantomData<AsPath>: UnsafeUnpin,
PhantomData<AsPathGroup>: UnsafeUnpin,
PhantomData<ResolutionMap>: UnsafeUnpin,
impl UnwindSafe for PolicyOptionswhere
RawVecInner: UnwindSafe,
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