#[non_exhaustive]pub struct RewriteRule {
pub kind: String,
pub name: String,
pub import: Option<String>,
pub forwarding_classes: Vec<RewriteClass>,
}Expand description
A <type> <name> rewrite rule.
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.kind: Stringdscp, dscp-ipv6, exp, ieee-802.1, ieee-802.1ad, inet-precedence, inet6-precedence or
frame-relay-de.
name: String§import: Option<String>The rewrite rule imported, or default.
forwarding_classes: Vec<RewriteClass>Trait Implementations§
Source§impl Clone for RewriteRule
impl Clone for RewriteRule
Source§impl Debug for RewriteRule
impl Debug for RewriteRule
impl Eq for RewriteRule
Source§impl PartialEq for RewriteRule
impl PartialEq for RewriteRule
impl StructuralPartialEq for RewriteRule
Auto Trait Implementations§
impl Forget for RewriteRule
impl Freeze for RewriteRule
impl Move for RewriteRule
impl RefUnwindSafe for RewriteRule
impl Send for RewriteRulewhere
RawVecInner: Send,
impl Sync for RewriteRulewhere
RawVecInner: Sync,
impl Unpin for RewriteRule
impl UnsafeUnpin for RewriteRulewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<RewriteClass>: UnsafeUnpin,
impl UnwindSafe for RewriteRulewhere
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