Struct ic_http_certification::tree::HttpCertification
source · pub struct HttpCertification(/* private fields */);
Expand description
A certified request and response pair.
It supports three types of certification via associated functions:
-
skip() excludes both an HTTP request and the corresponding HTTP response from certification.
-
response_only() includes an HTTP response but excludes the corresponding HTTP request from certification.
-
full() includes both an HTTP response and the corresponding HTTP request in certification.
Implementations§
source§impl HttpCertification
impl HttpCertification
sourcepub fn skip() -> HttpCertification
pub fn skip() -> HttpCertification
Creates a certification that excludes both the HTTP request and the corresponding HTTP response.
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 HTTP response, but excludes the corresponding HTTP request.
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 HTTP response and the corresponding HTTP request.
Trait Implementations§
source§impl Clone for HttpCertification
impl Clone for HttpCertification
source§fn clone(&self) -> HttpCertification
fn clone(&self) -> HttpCertification
Returns a copy 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
source§fn eq(&self, other: &HttpCertification) -> bool
fn eq(&self, other: &HttpCertification) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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