pub enum CompiledConstraint {
Glob {
param: String,
matcher: GlobMatcher,
pattern_str: String,
on_match: String,
on_missing: String,
},
NotGlob {
param: String,
matchers: Vec<(String, GlobMatcher)>,
on_match: String,
on_missing: String,
},
Regex {
param: String,
regex: Regex,
pattern_str: String,
on_match: String,
on_missing: String,
},
DomainMatch {
param: String,
pattern: String,
on_match: String,
on_missing: String,
},
DomainNotIn {
param: String,
patterns: Vec<String>,
on_match: String,
on_missing: String,
},
Eq {
param: String,
value: Value,
on_match: String,
on_missing: String,
},
Ne {
param: String,
value: Value,
on_match: String,
on_missing: String,
},
OneOf {
param: String,
values: Vec<Value>,
on_match: String,
on_missing: String,
},
NoneOf {
param: String,
values: Vec<Value>,
on_match: String,
on_missing: String,
},
}Expand description
A single pre-compiled parameter constraint with all patterns resolved at load time.
Variants§
Trait Implementations§
Source§impl Clone for CompiledConstraint
impl Clone for CompiledConstraint
Source§fn clone(&self) -> CompiledConstraint
fn clone(&self) -> CompiledConstraint
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 moreAuto Trait Implementations§
impl Freeze for CompiledConstraint
impl RefUnwindSafe for CompiledConstraint
impl Send for CompiledConstraint
impl Sync for CompiledConstraint
impl Unpin for CompiledConstraint
impl UnsafeUnpin for CompiledConstraint
impl UnwindSafe for CompiledConstraint
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