pub enum NodeKind {
RootSetting,
RuleSet,
Rule,
Respond,
FileNode,
Script,
}Expand description
What shape of value a node holds. The variants are what the
spec-defined EditCommand variants act on.
Variants§
RootSetting
Root config node — listener / log / service fields.
RuleSet
One rule set loaded from a referenced TOML file.
Rule
One rule inside a rule set.
Respond
The respond block of a rule.
FileNode
File-based response node (fallback dir entry).
Script
Script / middleware route.
Trait Implementations§
impl Copy for NodeKind
Auto Trait Implementations§
impl Freeze for NodeKind
impl RefUnwindSafe for NodeKind
impl Send for NodeKind
impl Sync for NodeKind
impl Unpin for NodeKind
impl UnsafeUnpin for NodeKind
impl UnwindSafe for NodeKind
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