Enum polar_core::error::ValidationError [−][src]
pub enum ValidationError {
FileLoading {
source: Source,
msg: String,
},
MissingRequiredRule {
rule_type: Rule,
},
InvalidRule {
rule: Rule,
msg: String,
},
InvalidRuleType {
rule_type: Rule,
msg: String,
},
UndefinedRuleCall {
term: Term,
},
ResourceBlock {
term: Term,
msg: String,
},
SingletonVariable {
term: Term,
},
UnregisteredClass {
term: Term,
},
DuplicateResourceBlockDeclaration {
resource: Term,
declaration: Term,
existing: Declaration,
new: Declaration,
},
}Variants
FileLoading
MissingRequiredRule
Fields
rule_type: RuleInvalidRule
InvalidRuleType
UndefinedRuleCall
Fields
term: TermTerm
ResourceBlock
SingletonVariable
Fields
term: TermTerm
UnregisteredClass
Fields
term: TermTerm
DuplicateResourceBlockDeclaration
Fields
resource: TermTerm
declaration: TermTerm
existing: Declarationnew: DeclarationImplementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnwindSafe for ValidationError
Blanket Implementations
Mutably borrows from an owned value. Read more