pub struct DefaultRequestCertification<'a> {
pub headers: Cow<'a, [&'a str]>,
pub query_parameters: Cow<'a, [&'a str]>,
}
Expand description
Options for configuring certification of a request.
The request method and body are always certified, but this struct allows configuring the certification of request headers and query parameters.
Fields§
§headers: Cow<'a, [&'a str]>
A list of request headers to include in certification.
As many or as little headers can be provided as desired. Providing an empty list will result in no request headers being certified.
query_parameters: Cow<'a, [&'a str]>
A list of request query parameters to include in certification.
As many or as little query parameters can be provided as desired. Providing an empty list will result in no request query parameters being certified.
Implementations§
source§impl<'a> DefaultRequestCertification<'a>
impl<'a> DefaultRequestCertification<'a>
sourcepub fn new(
headers: impl Into<Cow<'a, [&'a str]>>,
query_parameters: impl Into<Cow<'a, [&'a str]>>
) -> Self
pub fn new( headers: impl Into<Cow<'a, [&'a str]>>, query_parameters: impl Into<Cow<'a, [&'a str]>> ) -> Self
Creates a new DefaultRequestCertification with the given headers
and query_parameters
.
This is a convenience method for creating a DefaultRequestCertification
without having to directly deal with the Cow type.
Trait Implementations§
source§impl<'a> Clone for DefaultRequestCertification<'a>
impl<'a> Clone for DefaultRequestCertification<'a>
source§fn clone(&self) -> DefaultRequestCertification<'a>
fn clone(&self) -> DefaultRequestCertification<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<'a> Debug for DefaultRequestCertification<'a>
impl<'a> Debug for DefaultRequestCertification<'a>
source§impl<'a> PartialEq for DefaultRequestCertification<'a>
impl<'a> PartialEq for DefaultRequestCertification<'a>
source§fn eq(&self, other: &DefaultRequestCertification<'a>) -> bool
fn eq(&self, other: &DefaultRequestCertification<'a>) -> bool
self
and other
values to be equal, and is used
by ==
.