pub enum CelParserError {
Show 13 variants
UnrecognizedFunction(String),
MissingFunctionParameter {
function_name: String,
parameter_type: String,
parameter_name: String,
parameter_position: u8,
},
IncorrectFunctionParameterType {
function_name: String,
parameter_name: String,
expected_parameter_type: String,
found_parameter_type: String,
parameter_position: u8,
},
UnexpectedNodeType {
node_name: String,
expected_type: String,
found_type: String,
},
UnexpectedNodeName {
node_type: String,
expected_name: String,
found_name: String,
},
MissingObjectProperty {
object_name: String,
expected_property_name: String,
},
ExtraneousRequestCertificationProperty,
MissingRequestCertificationProperty,
ExtraneousResponseCertificationProperty,
MissingResponseCertificationProperty,
ExtraneousValidationArgsProperty,
MissingValidationArgsProperty,
CelSyntaxException(String),
}
Expand description
CEL expression parsing error.
Variants§
UnrecognizedFunction(String)
The CEL parser encountered an unsupported CEL function.
MissingFunctionParameter
The CEL parser expected a parameter at a position, but none was found.
Fields
IncorrectFunctionParameterType
The CEL parser expected a parameter to have a different type than the one it found.
Fields
UnexpectedNodeType
The CEL parser expected a node to have a different type than the one it found.
Fields
UnexpectedNodeName
The CEL parser expected a node to have a different name than the one it found.
Fields
MissingObjectProperty
The CEL parser expected an object to have a property with a particular name, but none was found.
Fields
ExtraneousRequestCertificationProperty
The CEL parser encountered an extraneous property on the request certification’s CEL object.
MissingRequestCertificationProperty
The CEL parser expected to find a property on the request certification’s CEL object, but none was found.
ExtraneousResponseCertificationProperty
The CEL parser encountered an extraneous property on the response certification’s CEL object.
MissingResponseCertificationProperty
The CEL parser expected to find a property on the response certification’s CEL object, but none was found.
ExtraneousValidationArgsProperty
The CEL parser encountered an extraneous property on the certification’s CEL object.
MissingValidationArgsProperty
The CEL parser expected to find a property on the certification’s CEL object, but none was found.
CelSyntaxException(String)
The CEL parser encountered a syntax error while parsing the CEL expression. Using the “debug” feature flag can help to debug these syntax errors.
Trait Implementations§
Source§impl Clone for CelParserError
impl Clone for CelParserError
Source§fn clone(&self) -> CelParserError
fn clone(&self) -> CelParserError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more