pub struct HttpCertification(/* private fields */);
Expand description
A certified HttpRequest and HttpResponse pair.
It supports three types of certification via associated functions:
-
skip() excludes both an HttpRequest and the corresponding HttpResponse from certification.
-
response_only() includes an HttpResponse but excludes the corresponding HttpRequest from certification.
-
full() includes both an HttpResponse and the corresponding HttpRequest in certification.
Implementations§
Source§impl HttpCertification
impl HttpCertification
Sourcepub fn skip() -> HttpCertification
pub fn skip() -> HttpCertification
Creates a certification that excludes both the HttpRequest and the corresponding HttpResponse.
Sourcepub fn response_only(
cel_expr_def: &DefaultResponseOnlyCelExpression<'_>,
response: &HttpResponse<'_>,
response_body_hash: Option<Hash>,
) -> HttpCertificationResult<HttpCertification>
pub fn response_only( cel_expr_def: &DefaultResponseOnlyCelExpression<'_>, response: &HttpResponse<'_>, response_body_hash: Option<Hash>, ) -> HttpCertificationResult<HttpCertification>
Creates a certification that includes an HttpResponse, but excludes the corresponding HttpRequest.
Sourcepub fn full(
cel_expr_def: &DefaultFullCelExpression<'_>,
request: &HttpRequest<'_>,
response: &HttpResponse<'_>,
response_body_hash: Option<Hash>,
) -> HttpCertificationResult<HttpCertification>
pub fn full( cel_expr_def: &DefaultFullCelExpression<'_>, request: &HttpRequest<'_>, response: &HttpResponse<'_>, response_body_hash: Option<Hash>, ) -> HttpCertificationResult<HttpCertification>
Creates a certification that includes both an HttpResponse and the corresponding HttpRequest.
Trait Implementations§
Source§impl Clone for HttpCertification
impl Clone for HttpCertification
Source§fn clone(&self) -> HttpCertification
fn clone(&self) -> HttpCertification
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HttpCertification
impl Debug for HttpCertification
Source§impl<'a> From<&'a HttpCertification> for Cow<'a, HttpCertification>
impl<'a> From<&'a HttpCertification> for Cow<'a, HttpCertification>
Source§fn from(cert: &'a HttpCertification) -> Cow<'a, HttpCertification>
fn from(cert: &'a HttpCertification) -> Cow<'a, HttpCertification>
Converts to this type from the input type.
Source§impl<'a> From<HttpCertification> for Cow<'a, HttpCertification>
impl<'a> From<HttpCertification> for Cow<'a, HttpCertification>
Source§fn from(cert: HttpCertification) -> Cow<'a, HttpCertification>
fn from(cert: HttpCertification) -> Cow<'a, HttpCertification>
Converts to this type from the input type.
Source§impl PartialEq for HttpCertification
impl PartialEq for HttpCertification
impl Copy for HttpCertification
impl Eq for HttpCertification
impl StructuralPartialEq for HttpCertification
Auto Trait Implementations§
impl Freeze for HttpCertification
impl RefUnwindSafe for HttpCertification
impl Send for HttpCertification
impl Sync for HttpCertification
impl Unpin for HttpCertification
impl UnwindSafe for HttpCertification
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