#[non_exhaustive]pub struct RuleSetView {
pub index: usize,
pub source_path: String,
pub url_path_prefix: Option<String>,
pub respond_dir_prefix: Option<String>,
pub rules: Vec<RuleView>,
}Expand description
GUI-facing view of one rule set.
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.index: usizeIndex within the parent RouteCatalogSnapshot::rule_sets list.
Identifies the rule set across edit commands.
source_path: StringSource file this rule set was loaded from (relative to the project).
url_path_prefix: Option<String>Optional URL path prefix shared across every rule in this set.
respond_dir_prefix: Option<String>Optional respond-dir prefix shared across every rule in this set.
rules: Vec<RuleView>The rules, in evaluation order.
Trait Implementations§
Source§impl Clone for RuleSetView
impl Clone for RuleSetView
Source§fn clone(&self) -> RuleSetView
fn clone(&self) -> RuleSetView
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuleSetView
impl Debug for RuleSetView
Auto Trait Implementations§
impl Freeze for RuleSetView
impl RefUnwindSafe for RuleSetView
impl Send for RuleSetView
impl Sync for RuleSetView
impl Unpin for RuleSetView
impl UnsafeUnpin for RuleSetView
impl UnwindSafe for RuleSetView
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