pub struct HttpCertificationTreeEntry<'a> {
pub path: Cow<'a, HttpCertificationPath<'a>>,
pub certification: Cow<'a, HttpCertification>,
}
Expand description
An entry in an HttpCertificationTree.
It requires two properties:
-
path specifies the path of an HttpCertification definition within the tree. This path will define what HttpRequest URLs the certification will be valid for.
-
certification that specifies the HttpCertification definition itself.
Use the new associated function to create a new HttpCertificationTreeEntry
.
Fields§
§path: Cow<'a, HttpCertificationPath<'a>>
The path of an HttpCertification definition within the tree. This path will define what HttpRequest URLs the certification will be valid for.
certification: Cow<'a, HttpCertification>
The HttpCertification definition itself.
Implementations§
source§impl<'a> HttpCertificationTreeEntry<'a>
impl<'a> HttpCertificationTreeEntry<'a>
sourcepub fn new(
path: impl Into<Cow<'a, HttpCertificationPath<'a>>>,
certification: impl Into<Cow<'a, HttpCertification>>
) -> Self
pub fn new( path: impl Into<Cow<'a, HttpCertificationPath<'a>>>, certification: impl Into<Cow<'a, HttpCertification>> ) -> Self
Creates a new HttpCertificationTreeEntry with the given path
and certification
.
This is a convenience method for creating a HttpCertificationTreeEntry
without having to directly deal with the Cow type.
Trait Implementations§
source§impl<'a> Clone for HttpCertificationTreeEntry<'a>
impl<'a> Clone for HttpCertificationTreeEntry<'a>
source§fn clone(&self) -> HttpCertificationTreeEntry<'a>
fn clone(&self) -> HttpCertificationTreeEntry<'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 HttpCertificationTreeEntry<'a>
impl<'a> Debug for HttpCertificationTreeEntry<'a>
source§impl<'a> PartialEq for HttpCertificationTreeEntry<'a>
impl<'a> PartialEq for HttpCertificationTreeEntry<'a>
source§fn eq(&self, other: &HttpCertificationTreeEntry<'a>) -> bool
fn eq(&self, other: &HttpCertificationTreeEntry<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for HttpCertificationTreeEntry<'a>
impl<'a> StructuralPartialEq for HttpCertificationTreeEntry<'a>
Auto Trait Implementations§
impl<'a> Freeze for HttpCertificationTreeEntry<'a>
impl<'a> RefUnwindSafe for HttpCertificationTreeEntry<'a>
impl<'a> Send for HttpCertificationTreeEntry<'a>
impl<'a> Sync for HttpCertificationTreeEntry<'a>
impl<'a> Unpin for HttpCertificationTreeEntry<'a>
impl<'a> UnwindSafe for HttpCertificationTreeEntry<'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