pub enum ModelPolicyRuleParseError {
Show 14 variants
RuleMustBeMapping {
found: String,
},
MatchMissing,
MatchMustBeMapping {
found: String,
},
MatchMustContainExactlyOne {
found: String,
},
MatchKeyMustBeString {
found: String,
},
UnknownMatchKey {
key: String,
},
MatchValueMustBeString {
key: String,
found: String,
},
MatchValueEmpty {
key: String,
},
OverrideMustBeMapping {
found: String,
},
UnknownOverrideKey {
key: String,
},
NetworkHostsNotAllowed {
key: String,
},
OverrideValueInvalid {
key: String,
found: String,
allowed: &'static str,
},
NoFallbackMustBeBoolean {
found: String,
},
WhenInvalid {
found: String,
},
}Variants§
RuleMustBeMapping
MatchMissing
MatchMustBeMapping
MatchMustContainExactlyOne
MatchKeyMustBeString
UnknownMatchKey
MatchValueMustBeString
MatchValueEmpty
OverrideMustBeMapping
UnknownOverrideKey
NetworkHostsNotAllowed
A host set is layered by settings, profile, overlay and CLI, never by a model rule.
OverrideValueInvalid
NoFallbackMustBeBoolean
WhenInvalid
Trait Implementations§
Source§impl Clone for ModelPolicyRuleParseError
impl Clone for ModelPolicyRuleParseError
Source§impl Debug for ModelPolicyRuleParseError
impl Debug for ModelPolicyRuleParseError
impl Eq for ModelPolicyRuleParseError
impl StructuralPartialEq for ModelPolicyRuleParseError
Auto Trait Implementations§
impl Forget for ModelPolicyRuleParseError
impl Freeze for ModelPolicyRuleParseError
impl RefUnwindSafe for ModelPolicyRuleParseError
impl Send for ModelPolicyRuleParseError
impl Sync for ModelPolicyRuleParseError
impl Unpin for ModelPolicyRuleParseError
impl UnsafeUnpin for ModelPolicyRuleParseError
impl UnwindSafe for ModelPolicyRuleParseError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.