Enum http_request_uri::RequestUri
source · pub enum RequestUri<'a> {
Origin {
path: &'a str,
query: Option<&'a str>,
fragment: Option<&'a str>,
},
AbsoluteUri {
scheme: &'a str,
username: Option<&'a str>,
password: Option<&'a str>,
host: &'a str,
port: Option<u16>,
path: &'a str,
query: Option<&'a str>,
fragment: Option<&'a str>,
},
Authority {
host: &'a str,
port: Option<u16>,
},
Asterisk,
}
Variants§
Trait Implementations§
source§impl<'a> Clone for RequestUri<'a>
impl<'a> Clone for RequestUri<'a>
source§fn clone(&self) -> RequestUri<'a>
fn clone(&self) -> RequestUri<'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 RequestUri<'a>
impl<'a> Debug for RequestUri<'a>
source§impl<'a> Hash for RequestUri<'a>
impl<'a> Hash for RequestUri<'a>
source§impl<'a> Ord for RequestUri<'a>
impl<'a> Ord for RequestUri<'a>
source§fn cmp(&self, other: &RequestUri<'a>) -> Ordering
fn cmp(&self, other: &RequestUri<'a>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a> PartialEq<RequestUri<'a>> for RequestUri<'a>
impl<'a> PartialEq<RequestUri<'a>> for RequestUri<'a>
source§fn eq(&self, other: &RequestUri<'a>) -> bool
fn eq(&self, other: &RequestUri<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd<RequestUri<'a>> for RequestUri<'a>
impl<'a> PartialOrd<RequestUri<'a>> for RequestUri<'a>
source§fn partial_cmp(&self, other: &RequestUri<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &RequestUri<'a>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more