pub struct DefaultFullCelExpressionBuilder<'a> { /* private fields */ }
Expand description
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.
Implementations§
source§impl<'a> DefaultFullCelExpressionBuilder<'a>
impl<'a> DefaultFullCelExpressionBuilder<'a>
sourcepub fn with_request_headers(
self,
headers: impl Into<Cow<'a, [&'a str]>>
) -> Self
pub fn with_request_headers( self, headers: impl Into<Cow<'a, [&'a str]>> ) -> Self
Configure the request headers that will be included in certification.
As many or as little headers can be provided as desired. Providing an empty list, or not calling this method, will result in no request query parameters being certified.
sourcepub fn with_request_query_parameters(
self,
query_params: impl Into<Cow<'a, [&'a str]>>
) -> Self
pub fn with_request_query_parameters( self, query_params: impl Into<Cow<'a, [&'a str]>> ) -> Self
Configure the request query parameters that will be included in certification.
As many or as little query parameters can be provided as desired. Providing an empty list, or not calling this method, will result in no request query parameters being certified.
sourcepub fn with_response_certification(
self,
headers_config: DefaultResponseCertification<'a>
) -> Self
pub fn with_response_certification( self, headers_config: DefaultResponseCertification<'a> ) -> Self
Configure the response headers that will be included in certification.
See DefaultResponseCertification for details on how to configure this. Not calling this method will result in no response headers being certified.
sourcepub fn build(self) -> DefaultFullCelExpression<'a>
pub fn build(self) -> DefaultFullCelExpression<'a>
Build the CEL expression, consuming the builder.
Trait Implementations§
source§impl<'a> Clone for DefaultFullCelExpressionBuilder<'a>
impl<'a> Clone for DefaultFullCelExpressionBuilder<'a>
source§fn clone(&self) -> DefaultFullCelExpressionBuilder<'a>
fn clone(&self) -> DefaultFullCelExpressionBuilder<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more