pub struct DefaultResponseCertification<'a>(/* private fields */);
Expand description
Options for configuring certification of a response.
The response body and status code are always certified, but this struct allows configuring the certification of response headers. Response headers may be included using the CertifiedResponseHeaders variant, and response headers may be excluded using the ResponseHeaderExclusions variant.
Implementations§
source§impl<'a> DefaultResponseCertification<'a>
impl<'a> DefaultResponseCertification<'a>
sourcepub fn certified_response_headers(
headers: impl Into<Cow<'a, [&'a str]>>
) -> Self
pub fn certified_response_headers( headers: impl Into<Cow<'a, [&'a str]>> ) -> Self
A list of response headers to include in certification.
As many or as little headers can be provided as desired. Providing an empty list will result in no response headers being certified.
sourcepub fn response_header_exclusions(
headers: impl Into<Cow<'a, [&'a str]>>
) -> Self
pub fn response_header_exclusions( headers: impl Into<Cow<'a, [&'a str]>> ) -> Self
A list of response headers to exclude from certification.
As many or as little headers can be provided as desired. Providing an empty list will result in all response headers being certified.
Trait Implementations§
source§impl<'a> Clone for DefaultResponseCertification<'a>
impl<'a> Clone for DefaultResponseCertification<'a>
source§fn clone(&self) -> DefaultResponseCertification<'a>
fn clone(&self) -> DefaultResponseCertification<'a>
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<'a> Debug for DefaultResponseCertification<'a>
impl<'a> Debug for DefaultResponseCertification<'a>
source§impl Default for DefaultResponseCertification<'_>
impl Default for DefaultResponseCertification<'_>
source§impl<'a> PartialEq for DefaultResponseCertification<'a>
impl<'a> PartialEq for DefaultResponseCertification<'a>
source§fn eq(&self, other: &DefaultResponseCertification<'a>) -> bool
fn eq(&self, other: &DefaultResponseCertification<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for DefaultResponseCertification<'a>
impl<'a> StructuralPartialEq for DefaultResponseCertification<'a>
Auto Trait Implementations§
impl<'a> Freeze for DefaultResponseCertification<'a>
impl<'a> RefUnwindSafe for DefaultResponseCertification<'a>
impl<'a> Send for DefaultResponseCertification<'a>
impl<'a> Sync for DefaultResponseCertification<'a>
impl<'a> Unpin for DefaultResponseCertification<'a>
impl<'a> UnwindSafe for DefaultResponseCertification<'a>
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