Module cel

Module cel 

Source
Expand description

The CEL module contains functions and builders for creating CEL expression definitions and converting them into their String representation.

Structs§

DefaultCelBuilder
A CEL expression builder for creating a default certification expression.
DefaultFullCelExpression
Options for configuring a CEL expression that includes both the HttpResponse and HttpRequest in certification.
DefaultFullCelExpressionBuilder
A CEL expression builder for creating expressions that will certify both the request and response. To create an expression that only certifies the response, see DefaultResponseOnlyCelBuilder.
DefaultRequestCertification
Options for configuring certification of a request.
DefaultResponseCertification
Options for configuring certification of a response.
DefaultResponseOnlyCelBuilder
A CEL expression builder for creating expressions that will only certify a response. To create an expression that certifies both the request and response, see DefaultFullCelExpressionBuilder.
DefaultResponseOnlyCelExpression
Options for configuring a CEL expression that includes only the HttpResponse in certification and excludes the HttpRequest from certification.

Enums§

CelExpression
A certification CEL expression defintion. Contains an enum variant for each CEL function supported for certification. Currently only one variant is supported: CelExpression::Default.
DefaultCelExpression
A certification CEL expression definition that uses the default CEL function.

Functions§

create_cel_expr
Converts a CEL expression from a CelExpression struct into it’s String representation.
create_default_cel_expr
Converts a CEL expression from a DefaultCelExpression struct into it’s String representation.
create_default_full_cel_expr
Converts a CEL expression that certifies both the HttpRequest and HttpResponse, from a DefaultFullCelExpression struct into it’s String representation. DefaultFullCelExpression::to_string is an alias of this method and can be used for ergonomics.
create_default_response_only_cel_expr
Converts a CEL expression that only certifies the HttpResponse, excluding the HttpRequest from certification, from a DefaultResponseOnlyCelExpression struct into it’s String representation.
create_default_skip_cel_expr
Creates the String representation of a CEL expression that skips certification entirely.